Tonic commited on
Commit
21febc8
1 Parent(s): 3ea1758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
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
- "Assistant is a public health and medical expert named Gaia ready to help the user.",
92
- "Hi there, I have a question!",
93
- "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
94
- "Assistant is a medical and sanitation question expert trained to answer medical questions", 0.4, 700, 0.90, 1.9
 
 
 
 
 
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="System Prompt", type="text", lines=2),
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"