papasega commited on
Commit
dc30f13
1 Parent(s): 2aca9c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,12 +25,12 @@ def generate_chat_response(history):
25
  response = chat_with_llm(messages)
26
  return response["content"]
27
 
28
- single_input = gr.inputs.Textbox(lines=2, placeholder="Enter your prompt here...")
29
- single_output = gr.outputs.Textbox()
30
  single_interface = gr.Interface(fn=generate_response, inputs=single_input, outputs=single_output, title="LLM Single Completion")
31
 
32
- chat_input = gr.inputs.Chatbot()
33
- chat_output = gr.outputs.Textbox()
34
  chat_interface = gr.Interface(fn=generate_chat_response, inputs=chat_input, outputs=chat_output, title="LLM Chat")
35
 
36
  app = gr.TabbedInterface([single_interface, chat_interface], ["Single Completion", "Chat"])
 
25
  response = chat_with_llm(messages)
26
  return response["content"]
27
 
28
+ single_input = gr.Textbox(lines=2, placeholder="Enter your prompt here...")
29
+ single_output = gr.Textbox()
30
  single_interface = gr.Interface(fn=generate_response, inputs=single_input, outputs=single_output, title="LLM Single Completion")
31
 
32
+ chat_input = gr.Chatbot()
33
+ chat_output = gr.Textbox()
34
  chat_interface = gr.Interface(fn=generate_chat_response, inputs=chat_input, outputs=chat_output, title="LLM Chat")
35
 
36
  app = gr.TabbedInterface([single_interface, chat_interface], ["Single Completion", "Chat"])