Update app.py
Browse files
app.py
CHANGED
|
@@ -43,14 +43,12 @@ def openai_chat_history(input, history):
|
|
| 43 |
conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
|
| 44 |
|
| 45 |
# Set up the Gradio interface
|
| 46 |
-
textbox = gr.inputs.Textbox(placeholder=conversation_prompt)
|
| 47 |
-
textbox_output = gr.outputs.Textbox(label="ChatRobo Output")
|
| 48 |
-
|
| 49 |
block = gr.Interface(
|
| 50 |
fn=openai_chat_history,
|
| 51 |
-
inputs=
|
| 52 |
-
outputs=
|
| 53 |
)
|
| 54 |
|
| 55 |
# Launch the Gradio interface
|
| 56 |
-
block.launch()
|
|
|
|
|
|
| 43 |
conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
|
| 44 |
|
| 45 |
# Set up the Gradio interface
|
|
|
|
|
|
|
|
|
|
| 46 |
block = gr.Interface(
|
| 47 |
fn=openai_chat_history,
|
| 48 |
+
inputs=[gr.inputs.Textbox(placeholder=conversation_prompt)],
|
| 49 |
+
outputs=[gr.outputs.Textbox(label="ChatRobo Output")]
|
| 50 |
)
|
| 51 |
|
| 52 |
# Launch the Gradio interface
|
| 53 |
+
block.launch()
|
| 54 |
+
|