Hazzzardous commited on
Commit
177a1d3
1 Parent(s): 99dd4f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def predict(input, history=None):
19
 
20
  def freegen(input):
21
  model.resetState()
22
- return model.loadContext(newctx=input)["output"]
23
 
24
  with gr.Blocks() as demo:
25
  with gr.Tab("Chatbot"):
@@ -33,6 +33,6 @@ with gr.Blocks() as demo:
33
  with gr.Tab("Free Gen"):
34
  with gr.Row():
35
  input = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
36
- outtext = gr.Textbox()
37
  input.submit(freegen,input,outtext)
38
  demo.launch()
 
19
 
20
  def freegen(input):
21
  model.resetState()
22
+ return input,model.loadContext(newctx=input)["output"]
23
 
24
  with gr.Blocks() as demo:
25
  with gr.Tab("Chatbot"):
 
33
  with gr.Tab("Free Gen"):
34
  with gr.Row():
35
  input = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
36
+ outtext = gr.Textbox(show_label=False)
37
  input.submit(freegen,input,outtext)
38
  demo.launch()