nageshsomayajula commited on
Commit
4cd32d8
1 Parent(s): 5195676

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -10,16 +10,5 @@ def call_chat(message):
10
  for text in llm(message, stream=True):
11
  return text
12
 
13
- with gr.Blocks() as demo:
14
- chatbot = gr.Chatbot()
15
- msg = gr.Textbox()
16
- clear = gr.ClearButton([msg, chatbot])
17
 
18
- def respond(message, chat_history):
19
- chat_history.append((message, bot_message))
20
- time.sleep(2)
21
- return "", chat_history
22
-
23
- msg.submit(call_chat, [msg, chatbot], [msg, chatbot])
24
-
25
- demo.launch()
 
10
  for text in llm(message, stream=True):
11
  return text
12
 
 
 
 
 
13
 
14
+ gr.ChatInterface(call_chat).launch()