Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,9 +123,9 @@ def respond(question, history):
|
|
| 123 |
# Create the Gradio interface
|
| 124 |
demo = gr.Interface(
|
| 125 |
fn=respond,
|
| 126 |
-
inputs=gr.
|
| 127 |
-
outputs=gr.
|
| 128 |
-
description
|
| 129 |
examples=[
|
| 130 |
{"question": "Hi, who are you?"},
|
| 131 |
{"question": "What's the current price of Bitcoin?"},
|
|
@@ -133,4 +133,4 @@ demo = gr.Interface(
|
|
| 133 |
{"question": "Write me a Python function to calculate the first 10 digits of the Fibonacci sequence."},
|
| 134 |
],
|
| 135 |
)
|
| 136 |
-
demo.launch(show_error=True)
|
|
|
|
| 123 |
# Create the Gradio interface
|
| 124 |
demo = gr.Interface(
|
| 125 |
fn=respond,
|
| 126 |
+
inputs=gr.Textbox(label="Question"),
|
| 127 |
+
outputs=gr.Textbox(label="Response"),
|
| 128 |
+
description="# OpenGPT 4o mini\n### You can engage in chat, generate images, perform web searches, and Q&A with images.",
|
| 129 |
examples=[
|
| 130 |
{"question": "Hi, who are you?"},
|
| 131 |
{"question": "What's the current price of Bitcoin?"},
|
|
|
|
| 133 |
{"question": "Write me a Python function to calculate the first 10 digits of the Fibonacci sequence."},
|
| 134 |
],
|
| 135 |
)
|
| 136 |
+
demo.launch(show_error=True)
|