ruslanmv commited on
Commit
3711a42
·
verified ·
1 Parent(s): ccdfb05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -47,11 +47,11 @@ Could these symptoms be related to hypothyroidism?
47
  If so, what steps should I take to get a proper diagnosis and discuss treatment options?
48
  '''
49
 
50
- '''
51
  examples = [
52
  [symptoms, question]
53
  ]
54
-
55
  iface = gr.Interface(
56
  fn=askme,
57
  inputs=["text", "text"],
@@ -95,13 +95,16 @@ iface = gr.Interface(
95
  layout="vertical",
96
  css=css
97
  )
 
98
  # Display the welcome message
99
  iface.add_text(welcome_message)
 
100
  # Input elements
101
  symptoms_input = iface.add_textbox("text", label="Symptoms", placeholder="Enter symptoms here")
102
  question_input = iface.add_textbox("text", label="Question", placeholder="Enter question here")
 
103
  # Output element
104
  answer_output = iface.add_textbox("text", label="Answer")
105
 
106
- # Assuming you have a function `askme` that processes the symptoms and question and returns a response
107
  iface.launch(examples=examples)
 
47
  If so, what steps should I take to get a proper diagnosis and discuss treatment options?
48
  '''
49
 
50
+
51
  examples = [
52
  [symptoms, question]
53
  ]
54
+ '''
55
  iface = gr.Interface(
56
  fn=askme,
57
  inputs=["text", "text"],
 
95
  layout="vertical",
96
  css=css
97
  )
98
+
99
  # Display the welcome message
100
  iface.add_text(welcome_message)
101
+
102
  # Input elements
103
  symptoms_input = iface.add_textbox("text", label="Symptoms", placeholder="Enter symptoms here")
104
  question_input = iface.add_textbox("text", label="Question", placeholder="Enter question here")
105
+
106
  # Output element
107
  answer_output = iface.add_textbox("text", label="Answer")
108
 
109
+ # Launch the interface with example usage
110
  iface.launch(examples=examples)