Tonic commited on
Commit
29c1afb
1 Parent(s): 88d1760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -22
app.py CHANGED
@@ -86,27 +86,25 @@ 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
- history = [
90
- {"user": "hi there how can you help me?", "assistant": "Hello, my name is Gaia, i'm created by Tonic, i can answer questions about medicine and public health!"},
91
- # Add more user and assistant messages as needed
92
- ]
93
- examples = [
94
- [
95
- {
96
- "user_message": "What is the proper treatment for buccal herpes?",
97
- "assistant_message": "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
98
- "history": [],
99
- "temperature": 0.4,
100
- "max_new_tokens": 700,
101
- "top_p": 0.90,
102
- "repetition_penalty": 1.9,
103
- }
104
- ]
105
- ]
106
-
107
-
108
-
109
-
110
 
111
  additional_inputs=[
112
  gr.Textbox("", label="Optional system prompt"),
@@ -152,7 +150,7 @@ iface = gr.Interface(
152
  fn=falcon_bot.predict,
153
  title=title,
154
  description=description,
155
- examples=examples,
156
  inputs=[
157
  gr.inputs.Textbox(label="Input Parameters", type="text", lines=5),
158
  ] + additional_inputs,
 
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
+ # Comment out cached examples and history to avoid time out on build.
90
+ #
91
+ # history = [
92
+ # {"user": "hi there how can you help me?", "assistant": "Hello, my name is Gaia, i'm created by Tonic, i can answer questions about medicine and public health!"},
93
+ # # Add more user and assistant messages as needed
94
+ # ]
95
+ # examples = [
96
+ # [
97
+ # {
98
+ # "user_message": "What is the proper treatment for buccal herpes?",
99
+ # "assistant_message": "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
100
+ # "history": [],
101
+ # "temperature": 0.4,
102
+ # "max_new_tokens": 700,
103
+ # "top_p": 0.90,
104
+ # "repetition_penalty": 1.9,
105
+ # }
106
+ # ]
107
+ # ]
 
 
108
 
109
  additional_inputs=[
110
  gr.Textbox("", label="Optional system prompt"),
 
150
  fn=falcon_bot.predict,
151
  title=title,
152
  description=description,
153
+ # examples=examples,
154
  inputs=[
155
  gr.inputs.Textbox(label="Input Parameters", type="text", lines=5),
156
  ] + additional_inputs,