kingabzpro commited on
Commit
4e58b97
1 Parent(s): 473ca64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -1,8 +1,4 @@
1
  import os
2
- import subprocess
3
- subprocess.run(["pip", "install","gradio==2.8.0b10"])
4
-
5
-
6
  import gradio as gr
7
 
8
  HF_TOKEN = os.getenv('HF_TOKEN')
@@ -40,7 +36,7 @@ def predict(input, history=[]):
40
 
41
  return response, history
42
 
43
- gr.Interface(fn = predict, inputs = "textbox", outputs = "chatbot",allow_flagging = "manual",theme ="grass",title = title, flagging_callback = hf_writer, description = description, article = article ).launch(enable_queue=True) # customizes the input component
44
 
45
  #theme ="grass",
46
  #title = title,
 
1
  import os
 
 
 
 
2
  import gradio as gr
3
 
4
  HF_TOKEN = os.getenv('HF_TOKEN')
 
36
 
37
  return response, history
38
 
39
+ gr.Interface(fn = predict, inputs = ["textbox","state"], outputs = ["chatbot","state"],allow_flagging = "manual",theme ="grass",title = title, flagging_callback = hf_writer, description = description, article = article ).launch(enable_queue=True) # customizes the input component
40
 
41
  #theme ="grass",
42
  #title = title,