akazmi commited on
Commit
3e4439c
·
verified ·
1 Parent(s): 803874b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.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!"
 
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!"