Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
29 |
-
single_output = gr.
|
30 |
single_interface = gr.Interface(fn=generate_response, inputs=single_input, outputs=single_output, title="LLM Single Completion")
|
31 |
|
32 |
-
chat_input = gr.
|
33 |
-
chat_output = gr.
|
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"])
|