Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ class SimpleActiveReader:
|
|
| 23 |
Simplified Active Reading implementation for demo purposes
|
| 24 |
"""
|
| 25 |
|
| 26 |
-
def __init__(self, model_name: str = "
|
| 27 |
"""Initialize with a smaller model suitable for HF Spaces"""
|
| 28 |
self.model_name = model_name
|
| 29 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 23 |
Simplified Active Reading implementation for demo purposes
|
| 24 |
"""
|
| 25 |
|
| 26 |
+
def __init__(self, model_name: str = "microsoft/DialoGPT-small"):
|
| 27 |
"""Initialize with a smaller model suitable for HF Spaces"""
|
| 28 |
self.model_name = model_name
|
| 29 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|