Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,5 +36,12 @@ while True:
|
|
| 36 |
response = generate_response(user_input)
|
| 37 |
print("Chatbot:", response)
|
| 38 |
print("Welcome to the chatbot!\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
|
|
|
|
| 36 |
response = generate_response(user_input)
|
| 37 |
print("Chatbot:", response)
|
| 38 |
print("Welcome to the chatbot!\n")
|
| 39 |
+
block = gr.Interface(
|
| 40 |
+
fn=openai_chat_history,
|
| 41 |
+
inputs=[gr.inputs.Textbox(placeholder=conversation_prompt)],
|
| 42 |
+
outputs=[gr.outputs.Textbox(label="ChatRobo Output")]
|
| 43 |
+
)
|
| 44 |
+
block.launch()
|
| 45 |
+
|
| 46 |
|
| 47 |
|