Elouarn commited on
Commit
932e367
·
verified ·
1 Parent(s): cae6169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -271,7 +271,7 @@ def accuse_btn(request: gr.Request):
271
  return accuse_btn
272
 
273
 
274
- def chatbot_interface(request: gr.Request):
275
  chatbot_interface = gr.ChatInterface(
276
  fn=generate,
277
  chatbot=mychatbot,
@@ -291,7 +291,7 @@ def main(request: gr.Request):
291
  with gr.Blocks(css="footer {visibility: hidden !important} .gradio-container {background-color: #2D4059 !important; color: #FFD460 !important;}",
292
  js=js_func) as demo:
293
  accuse_button = gr.Button("Accuser")
294
- chat_interface = chatbot_interface(request)
295
  demo.launch(show_api=False, inline=True)
296
 
297
  if __name__ == "__main__":
 
271
  return accuse_btn
272
 
273
 
274
+ def chatbot_interface(request: gr.Request,accuse_button):
275
  chatbot_interface = gr.ChatInterface(
276
  fn=generate,
277
  chatbot=mychatbot,
 
291
  with gr.Blocks(css="footer {visibility: hidden !important} .gradio-container {background-color: #2D4059 !important; color: #FFD460 !important;}",
292
  js=js_func) as demo:
293
  accuse_button = gr.Button("Accuser")
294
+ chat_interface = chatbot_interface(request,accuse_button)
295
  demo.launch(show_api=False, inline=True)
296
 
297
  if __name__ == "__main__":