Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def chat_with_model(user_input):
|
|
| 8 |
response = model(user_input)[0]['generated_text']
|
| 9 |
return response
|
| 10 |
|
| 11 |
-
textbox = gr.inputs.Textbox(lines=7, label="
|
| 12 |
output_text = gr.outputs.Textbox(label="ChatGPT Response")
|
| 13 |
|
| 14 |
-
gr.Interface(fn=chat_with_model, inputs=textbox, outputs=output_text, title="ChatGPT with Hugging Face", description="
|
|
|
|
| 8 |
response = model(user_input)[0]['generated_text']
|
| 9 |
return response
|
| 10 |
|
| 11 |
+
textbox = gr.inputs.Textbox(lines=7, label="Chat with the Model")
|
| 12 |
output_text = gr.outputs.Textbox(label="ChatGPT Response")
|
| 13 |
|
| 14 |
+
gr.Interface(fn=chat_with_model, inputs=textbox, outputs=output_text, title="ChatGPT with Hugging Face", description="Chat with the ChatGPT model from Hugging Face").launch()
|