Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,13 +50,10 @@ def openai_chat_history(input, history):
|
|
| 50 |
else:
|
| 51 |
return "", history
|
| 52 |
|
| 53 |
-
# Define the conversation prompt
|
| 54 |
-
conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
|
| 55 |
-
|
| 56 |
# Set up the Gradio interface
|
| 57 |
block = gr.Interface(
|
| 58 |
fn=openai_chat_history,
|
| 59 |
-
inputs=[gr.inputs.Textbox(placeholder=conversation_prompt)
|
| 60 |
outputs=[gr.outputs.Textbox(label="ChatRobo Output")]
|
| 61 |
)
|
| 62 |
|
|
@@ -66,3 +63,4 @@ block.launch()
|
|
| 66 |
|
| 67 |
|
| 68 |
|
|
|
|
|
|
| 50 |
else:
|
| 51 |
return "", history
|
| 52 |
|
|
|
|
|
|
|
|
|
|
| 53 |
# Set up the Gradio interface
|
| 54 |
block = gr.Interface(
|
| 55 |
fn=openai_chat_history,
|
| 56 |
+
inputs=[gr.inputs.Textbox(placeholder=conversation_prompt)],
|
| 57 |
outputs=[gr.outputs.Textbox(label="ChatRobo Output")]
|
| 58 |
)
|
| 59 |
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
+
|