Tonic commited on
Commit
68403cb
1 Parent(s): d50b1d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -133,16 +133,13 @@ def convert_to_markdown(vectara_response_json):
133
  else:
134
  return "No data found in the response."
135
 
136
-
137
- iface = gr.Interface(
138
- fn=lambda text: convert_to_markdown(query_vectara(text)),
139
- inputs=[gr.Textbox(label="Input Text")],
140
- outputs=[gr.Markdown(label="Output Text")],
141
- title="👋🏻Welcome to Team🚀Tonic's 😷MultiMed⚕️",
142
- description="""<h2>How To Use 😷MultiMed⚕️:</h2><h3>🗣️📝Interact with 😷MultiMed⚕️ in any language using audio or text!🗣️📝</h3>
143
- <h3>This is an educational and accessible conversational tool to improve wellness and sanitation in support of public health. 📚🌟💼 You can use 😷MultiMed⚕️ on your own data & in your own way by cloning this space. 🧬🔬🔍 Simply click here: <a style="display:inline-block" href="https://huggingface.co/spaces/TeamTonic/MultiMed?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHY dmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></h3>
144
- <h3>🌟TeamTonic🌟 is always making cool demos!</h3>
145
- <h3>Join our active builder's community on Discord: <a href="https://discord.gg/GWpVpekp"><img src="https://discordapp.com/api/guilds/1109943800132010065/widget.png"></a> On Huggingface: <a href="https://huggingface.co/TeamTonic">TeamTonic</a> & <a href="https://huggingface.co/MultiTransformer">MultiTransformer</a> On Github: <a href="https://github.com/tonic-ai">Polytonic<img src="https://img.shields.io/github/followers/Tonic-AI.svg?style=social&label=Follow&maxAge=2592000"></a> & contribute to <a href="https://github.com/tonic-ai/polygpt-alpha">PolyGPT</h3>""",
146
  examples=[
147
  ["What is the proper treatment for buccal herpes?"],
148
  ["Male, 40 presenting with swollen genitals and a rash"],
@@ -151,8 +148,9 @@ iface = gr.Interface(
151
  ["When and how often should I wash my hands ?"],
152
  ["بکل ہرپس کا صحیح علاج کیا ہے؟"],
153
  ["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
154
- ["Je, ni matibabu gani sahihi kwa herpes ya buccal?"]
155
- ]
 
156
  )
157
-
158
  iface.launch()
 
133
  else:
134
  return "No data found in the response."
135
 
136
+ iface = gr.Interface(
137
+ fn=lambda text: convert_to_markdown(query_vectara(text)),
138
+ inputs=[gr.Textbox(label="Input Text")],
139
+ outputs=[gr.Markdown(label="Output Text")],
140
+ title="👋🏻Welcome to ⚕🗣️😷MultiMed - Access Chat ⚕🗣️😷",
141
+ description="""<h2>How To Use ⚕🗣️😷MultiMed⚕:</h2><h3>🗣️📝Interact with ⚕🗣️😷MultiMed⚕ in any language using audio or text!🗣️📝</h3>
142
+ <h3>This is an educational and accessible conversational tool to improve wellness and sanitation in support of public health. 📚🌟💼 The knowledge base is composed of publicly available medical and health sources in multiple languages. We also used [Kelvalya/MedAware](https://huggingface.co/datasets/keivalya/MedQuad-MedicalQnADataset) that we processed and converted to html. The quality of the answers depends on the quality of the dataset, so if you want to see some data represented here, do [get in touch](https://discord.gg/GWpVpekp). You can also use 😷MultiMed⚕️ on your own data & in your own way by cloning this space. 🧬🔬🔍 Simply click here: <a style="display:inline-block" href="https://huggingface.co/spaces/TeamTonic/MultiMed?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHY dmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></h3>
 
 
 
143
  examples=[
144
  ["What is the proper treatment for buccal herpes?"],
145
  ["Male, 40 presenting with swollen genitals and a rash"],
 
148
  ["When and how often should I wash my hands ?"],
149
  ["بکل ہرپس کا صحیح علاج کیا ہے؟"],
150
  ["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
151
+ ["Je, ni matibabu gani sahihi kwa herpes ya buccal?"],
152
+ ],
153
+ footer="""<h3>🌟TeamTonic🌟 is always making cool demos!</h3> <h3>Join our active builder's community on Discord: <a href="https://discord.gg/GWpVpekp"><img src="https://discordapp.com/api/guilds/1109943800132010065/widget.png"></a> On Huggingface: <a href="https://huggingface.co/TeamTonic">TeamTonic</a> & <a href="https://huggingface.co/MultiTransformer">MultiTransformer</a> On Github: <a href="https://github.com/tonic-ai">Polytonic<img src="https://img.shields.io/github/followers/Tonic-AI.svg?style=social&label=Follow&maxAge=2592000"></a> & contribute to <a href="https://github.com/tonic-ai/polygpt-alpha">PolyGPT</h3>""",
154
  )
155
+
156
  iface.launch()