Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,10 @@ def math_chatbot(question):
|
|
21 |
|
22 |
return answer
|
23 |
|
24 |
-
# Gradio interface
|
25 |
iface = gr.Interface(
|
26 |
fn=math_chatbot,
|
27 |
-
inputs=gr.
|
28 |
outputs="text",
|
29 |
title="Math Chatbot",
|
30 |
description="Ask any mathematical question and get an answer!"
|
|
|
21 |
|
22 |
return answer
|
23 |
|
24 |
+
# Gradio interface using the updated syntax
|
25 |
iface = gr.Interface(
|
26 |
fn=math_chatbot,
|
27 |
+
inputs=gr.Textbox(label="Ask a Mathematical Question", placeholder="e.g., What is 2 + 2?"),
|
28 |
outputs="text",
|
29 |
title="Math Chatbot",
|
30 |
description="Ask any mathematical question and get an answer!"
|