Spaces:
Sleeping
Sleeping
app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from fastapi.responses import JSONResponse
|
|
| 5 |
import uvicorn
|
| 6 |
|
| 7 |
# ===== Load the model =====
|
| 8 |
-
model = pipeline("text-generation", model="
|
| 9 |
|
| 10 |
# ===== Chat function =====
|
| 11 |
def chat(message):
|
|
|
|
| 5 |
import uvicorn
|
| 6 |
|
| 7 |
# ===== Load the model =====
|
| 8 |
+
model = pipeline("text-generation", model="microsoft/DialoGPT-medium")
|
| 9 |
|
| 10 |
# ===== Chat function =====
|
| 11 |
def chat(message):
|