Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,7 @@ def stream_chat(
|
|
88 |
|
89 |
chatbot = gr.Chatbot(
|
90 |
height=600,
|
91 |
-
placeholder=PLACEHOLDER
|
92 |
-
examples=[
|
93 |
-
{"text": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."},
|
94 |
-
{"text": "What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."},
|
95 |
-
{"text": "Tell me a random fun fact about the Roman Empire."},
|
96 |
-
{"text": "Show me a code snippet of a website's sticky header in CSS and JavaScript."},
|
97 |
-
],
|
98 |
)
|
99 |
|
100 |
with gr.Blocks(theme="ocean", css=CSS) as demo:
|
@@ -103,7 +97,12 @@ with gr.Blocks(theme="ocean", css=CSS) as demo:
|
|
103 |
gr.ChatInterface(
|
104 |
fn=stream_chat,
|
105 |
chatbot=chatbot,
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
107 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
108 |
additional_inputs=[
|
109 |
gr.Slider(
|
|
|
88 |
|
89 |
chatbot = gr.Chatbot(
|
90 |
height=600,
|
91 |
+
placeholder=PLACEHOLDER
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
)
|
93 |
|
94 |
with gr.Blocks(theme="ocean", css=CSS) as demo:
|
|
|
97 |
gr.ChatInterface(
|
98 |
fn=stream_chat,
|
99 |
chatbot=chatbot,
|
100 |
+
examples=[
|
101 |
+
{"text": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."},
|
102 |
+
{"text": "What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."},
|
103 |
+
{"text": "Tell me a random fun fact about the Roman Empire."},
|
104 |
+
{"text": "Show me a code snippet of a website's sticky header in CSS and JavaScript."},
|
105 |
+
],
|
106 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
107 |
additional_inputs=[
|
108 |
gr.Slider(
|