vaishakgkumar commited on
Commit
474745c
1 Parent(s): 7124f9d

examples removed

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -68,7 +68,7 @@ class ChatBot:
68
  def __init__(self):
69
  self.history = []
70
 
71
- def predict(self, user_input, system_prompt="You are an expert medical analyst:"):
72
  # Combine user input and system prompt
73
  formatted_input = f"{user_input}{system_prompt}"
74
 
@@ -93,18 +93,15 @@ class ChatBot:
93
 
94
  bot = ChatBot()
95
 
96
- title = "👋🏻Welcome to Tonic's 😷StableMed⚕️ Chat🦟"
97
  description = """
98
  You can use this Space to test out the current model vaishakgkumar/stablemedv3.
99
  """
100
- examples = [["What is the proper treatment for buccal herpes?", "Please provide information on the most effective antiviral medications and home remedies for treating buccal herpes."]]
101
-
102
  iface = gr.Interface(
103
  fn=bot.predict,
104
  title=title,
105
  description=description,
106
- examples=examples,
107
- inputs=["text", "text"], # Take user input and system prompt separately
108
  outputs="text",
109
  theme="ParityError/Anime"
110
  )
 
68
  def __init__(self):
69
  self.history = []
70
 
71
+ def predict(self, user_input, system_prompt="You are an expert medical analyst trained on medical datatset:"):
72
  # Combine user input and system prompt
73
  formatted_input = f"{user_input}{system_prompt}"
74
 
 
93
 
94
  bot = ChatBot()
95
 
96
+ title = "StableDoc Chat"
97
  description = """
98
  You can use this Space to test out the current model vaishakgkumar/stablemedv3.
99
  """
 
 
100
  iface = gr.Interface(
101
  fn=bot.predict,
102
  title=title,
103
  description=description,
104
+ inputs=["text"], # Take user input and system prompt separately
 
105
  outputs="text",
106
  theme="ParityError/Anime"
107
  )