vericudebuget commited on
Commit
41b38a1
·
verified ·
1 Parent(s): 94480b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -46,7 +46,8 @@ additional_inputs = [
46
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
47
  ]
48
 
49
- with gr.Blocks(theme=gr.themes.Soft()):
 
50
  chatbot = gr.Chatbot()
51
  text_input = gr.Textbox(label="Your message")
52
  submit_btn = gr.Button("Submit")
@@ -57,12 +58,4 @@ with gr.Blocks(theme=gr.themes.Soft()):
57
 
58
  submit_btn.click(process_message, inputs=[text_input, chatbot], outputs=[chatbot, text_input])
59
 
60
- app = gr.Interface(
61
- fn=None,
62
- inputs=None,
63
- outputs=None,
64
- title="ConvoLite",
65
- theme=gr.themes.Soft(),
66
- concurrency_limit=20,
67
- )
68
  app.launch(show_api=False)
 
46
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
47
  ]
48
 
49
+ app = gr.Blocks(theme=gr.themes.Soft())
50
+ with app:
51
  chatbot = gr.Chatbot()
52
  text_input = gr.Textbox(label="Your message")
53
  submit_btn = gr.Button("Submit")
 
58
 
59
  submit_btn.click(process_message, inputs=[text_input, chatbot], outputs=[chatbot, text_input])
60
 
 
 
 
 
 
 
 
 
61
  app.launch(show_api=False)