Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,4 +8,8 @@ pipe = pipeline("text-generation", model="gpt2")
|
|
| 8 |
messages = [
|
| 9 |
{"role": "user", "content": "Who are you?"},
|
| 10 |
]
|
| 11 |
-
pipe(messages)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
messages = [
|
| 9 |
{"role": "user", "content": "Who are you?"},
|
| 10 |
]
|
| 11 |
+
pipe(messages)
|
| 12 |
+
|
| 13 |
+
# Create Gradio interface
|
| 14 |
+
iface = gr.Interface(fn=generate_response, inputs="text", outputs="text")
|
| 15 |
+
iface.launch()
|