Bofandra commited on
Commit
ade23b0
·
verified ·
1 Parent(s): a5d193f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -134,7 +134,7 @@ def respond(
134
  """
135
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
136
  """
137
- demo = gr.ChatInterface(
138
  respond,
139
  additional_inputs=[
140
  gr.Textbox(value="You are a sunni moslem bot that always give answer based on quran, hadith, and the companions of prophet Muhammad!", label="System message"),
@@ -148,6 +148,14 @@ demo = gr.ChatInterface(
148
  label="Top-p (nucleus sampling)",
149
  ),
150
  ],
 
 
 
 
 
 
 
 
151
  )
152
 
153
 
 
134
  """
135
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
136
  """
137
+ demo = gr.Interface(
138
  respond,
139
  additional_inputs=[
140
  gr.Textbox(value="You are a sunni moslem bot that always give answer based on quran, hadith, and the companions of prophet Muhammad!", label="System message"),
 
148
  label="Top-p (nucleus sampling)",
149
  ),
150
  ],
151
+ inputs="textbox",
152
+ outputs="textbox",
153
+ cache_examples="lazy",
154
+ examples=[
155
+ ["Why is men created?"],
156
+ ["Please tell me about superstition!"],
157
+ ["How moses defeat pharaoh?"],
158
+ ],
159
  )
160
 
161