pushkarweb commited on
Commit
d01c61c
·
1 Parent(s): e6b6fd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,8 +14,9 @@ os.environ["OPENAI_API_KEY"] = 'sk-zVUH6ggFv9cygU9UV6IjT3BlbkFJeNc4LGYhOWOYzGv3h
14
  with gr.Blocks(theme=theme) as demo:
15
  chatbot = gr.Chatbot(label="SRF Interactive Chatbot",show_share_button="true")
16
  msg = gr.Textbox(label="Ask me any question",placeholder="Send us a message")
17
- clear = gr.ClearButton([msg, chatbot])
18
  btn = gr.Button(value="Submit")
 
 
19
 
20
  def respond(message, chat_history):
21
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
 
14
  with gr.Blocks(theme=theme) as demo:
15
  chatbot = gr.Chatbot(label="SRF Interactive Chatbot",show_share_button="true")
16
  msg = gr.Textbox(label="Ask me any question",placeholder="Send us a message")
 
17
  btn = gr.Button(value="Submit")
18
+ clear = gr.ClearButton([msg, chatbot])
19
+
20
 
21
  def respond(message, chat_history):
22
  index = GPTSimpleVectorIndex.load_from_disk('index.json')