Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,14 +86,20 @@ falcon_bot = FalconChatBot()
|
|
86 |
title = "👋🏻Welcome to Tonic's 🦅Falcon's Medical👨🏻⚕️Expert Chat🚀"
|
87 |
description = "You can use this Space to test out the GaiaMiniMed model [(Tonic/GaiaMiniMed)](https://huggingface.co/Tonic/GaiaMiniMed) or duplicate this Space and use it locally or on 🤗HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
|
88 |
|
89 |
-
examples = [
|
90 |
-
[
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
95 |
]
|
96 |
-
]
|
|
|
97 |
|
98 |
|
99 |
additional_inputs=[
|
@@ -142,9 +148,7 @@ iface = gr.Interface(
|
|
142 |
description=description,
|
143 |
examples=examples,
|
144 |
inputs=[
|
145 |
-
gr.inputs.Textbox(label="
|
146 |
-
gr.inputs.Textbox(label="User Message", type="text", lines=3),
|
147 |
-
gr.inputs.Textbox(label="Assistant Message", type="text", lines=2),
|
148 |
] + additional_inputs,
|
149 |
outputs="text",
|
150 |
theme="ParityError/Anime"
|
|
|
86 |
title = "👋🏻Welcome to Tonic's 🦅Falcon's Medical👨🏻⚕️Expert Chat🚀"
|
87 |
description = "You can use this Space to test out the GaiaMiniMed model [(Tonic/GaiaMiniMed)](https://huggingface.co/Tonic/GaiaMiniMed) or duplicate this Space and use it locally or on 🤗HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
|
88 |
|
89 |
+
examples = [
|
90 |
+
[
|
91 |
+
{
|
92 |
+
"user_message": "Hi there, I have a question!",
|
93 |
+
"assistant_message": "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
|
94 |
+
"history": [],
|
95 |
+
"temperature": 0.4,
|
96 |
+
"max_new_tokens": 700,
|
97 |
+
"top_p": 0.90,
|
98 |
+
"repetition_penalty": 1.9,
|
99 |
+
}
|
100 |
]
|
101 |
+
]
|
102 |
+
|
103 |
|
104 |
|
105 |
additional_inputs=[
|
|
|
148 |
description=description,
|
149 |
examples=examples,
|
150 |
inputs=[
|
151 |
+
gr.inputs.Textbox(label="Input Parameters", type="text", lines=5),
|
|
|
|
|
152 |
] + additional_inputs,
|
153 |
outputs="text",
|
154 |
theme="ParityError/Anime"
|