Update app.py
Browse files
app.py
CHANGED
|
@@ -60,10 +60,13 @@ def openai_chat_history(input, history):
|
|
| 60 |
conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
|
| 61 |
|
| 62 |
# Set up the Gradio interface
|
|
|
|
|
|
|
|
|
|
| 63 |
block = gr.Interface(
|
| 64 |
fn=openai_chat_history,
|
| 65 |
-
inputs=
|
| 66 |
-
outputs=
|
| 67 |
)
|
| 68 |
|
| 69 |
# Launch the Gradio interface
|
|
|
|
| 60 |
conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
|
| 61 |
|
| 62 |
# Set up the Gradio interface
|
| 63 |
+
textbox = gr.inputs.Textbox(placeholder=conversation_prompt)
|
| 64 |
+
textbox_output = gr.outputs.Textbox(label="ChatRobo Output")
|
| 65 |
+
|
| 66 |
block = gr.Interface(
|
| 67 |
fn=openai_chat_history,
|
| 68 |
+
inputs=textbox,
|
| 69 |
+
outputs=textbox_output
|
| 70 |
)
|
| 71 |
|
| 72 |
# Launch the Gradio interface
|