Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ import gradio as gr
|
|
3 |
|
4 |
# Load the pipeline for text generation
|
5 |
try:
|
6 |
-
|
|
|
|
|
7 |
except Exception as e:
|
8 |
print(f"Error loading the model: {e}")
|
9 |
raise
|
|
|
3 |
|
4 |
# Load the pipeline for text generation
|
5 |
try:
|
6 |
+
# generator = pipeline("text-generation", model="microsoft/DialoGPT-small")
|
7 |
+
generator = pipeline("text-generation", model="microsoft/DialoGPT-medium")
|
8 |
+
|
9 |
except Exception as e:
|
10 |
print(f"Error loading the model: {e}")
|
11 |
raise
|