Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,13 +131,23 @@ def convert_to_markdown(vectara_response_json):
|
|
| 131 |
else:
|
| 132 |
return "No data found in the response."
|
| 133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
iface = gr.Interface(
|
| 136 |
fn=lambda text: convert_to_markdown(query_vectara(text)),
|
| 137 |
inputs=[gr.Textbox(label="Input Text")],
|
| 138 |
outputs=[gr.Markdown(label="Output Text")],
|
| 139 |
-
title="
|
| 140 |
-
description="
|
| 141 |
examples=[
|
| 142 |
["What is the proper treatment for buccal herpes?"],
|
| 143 |
["Male,40 presenting with swollen genitals and a rash"],
|
|
@@ -148,6 +158,9 @@ iface = gr.Interface(
|
|
| 148 |
["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
|
| 149 |
["Je, ni matibabu gani sahihi kwa herpes ya buccal?"]
|
| 150 |
]
|
| 151 |
-
)
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
iface.launch()
|
|
|
|
| 131 |
else:
|
| 132 |
return "No data found in the response."
|
| 133 |
|
| 134 |
+
# Welcome to Team Tonic's MultiMed
|
| 135 |
+
new_section_content = """
|
| 136 |
+
### How To Use
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
### Join us
|
| 140 |
+
On Discord : [](https://discord.gg/GWpVpekp)
|
| 141 |
+
On Huggingface : [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer)
|
| 142 |
+
On Github : [PolyTonic](https://github.com/tonic-ai) & contribute to [PolyGPT](https://github.com/tonic-ai/polygpt-alpha)[]
|
| 143 |
+
"""
|
| 144 |
|
| 145 |
iface = gr.Interface(
|
| 146 |
fn=lambda text: convert_to_markdown(query_vectara(text)),
|
| 147 |
inputs=[gr.Textbox(label="Input Text")],
|
| 148 |
outputs=[gr.Markdown(label="Output Text")],
|
| 149 |
+
title="👋🏻Welcome to Team Tonic MultiMed⚕️",
|
| 150 |
+
description="This is an educational and accessible conversational tool to improve wellness and sanitation in support of public health that you can use on your own data & in your own way by cloning this space! ",
|
| 151 |
examples=[
|
| 152 |
["What is the proper treatment for buccal herpes?"],
|
| 153 |
["Male,40 presenting with swollen genitals and a rash"],
|
|
|
|
| 158 |
["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
|
| 159 |
["Je, ni matibabu gani sahihi kwa herpes ya buccal?"]
|
| 160 |
]
|
| 161 |
+
)
|
| 162 |
+
new_section_component = gr.Markdown(new_section_content)
|
| 163 |
+
#Layout for Larkdown
|
| 164 |
+
iface.layout[0].insert(1, new_section_component)
|
| 165 |
|
| 166 |
iface.launch()
|