Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
| 4 |
pipe = pipeline("text-generation", model="openai-community/gpt2")
|
| 5 |
|
| 6 |
def chat(text):
|
| 7 |
-
result= pipe
|
| 8 |
return result
|
| 9 |
|
| 10 |
with gr.Blocks(title='Basic chatbot based on gpt2') as demo:
|
|
|
|
| 4 |
pipe = pipeline("text-generation", model="openai-community/gpt2")
|
| 5 |
|
| 6 |
def chat(text):
|
| 7 |
+
result= pipe(text)
|
| 8 |
return result
|
| 9 |
|
| 10 |
with gr.Blocks(title='Basic chatbot based on gpt2') as demo:
|