Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,12 @@ def echo(message, history, system_prompt, tokens):
|
|
7 |
time.sleep(0.05)
|
8 |
yield response[: i+1]
|
9 |
|
10 |
-
with gr.Blocks() as demo:
|
11 |
system_prompt = gr.Textbox("You are helpful AI.", label="System Prompt")
|
12 |
slider = gr.Slider(100, 500, render=False)
|
13 |
|
14 |
gr.ChatInterface(
|
15 |
-
echo, additional_inputs=[system_prompt, slider], type="messages", save_history=True
|
16 |
)
|
17 |
|
18 |
demo.launch()
|
|
|
7 |
time.sleep(0.05)
|
8 |
yield response[: i+1]
|
9 |
|
10 |
+
with gr.Blocks(theme="citrus") as demo:
|
11 |
system_prompt = gr.Textbox("You are helpful AI.", label="System Prompt")
|
12 |
slider = gr.Slider(100, 500, render=False)
|
13 |
|
14 |
gr.ChatInterface(
|
15 |
+
echo, additional_inputs=[system_prompt, slider], type="messages", save_history=True, examples=[["hi there"], ["What is 2+2?"], ["Is 9.90 > 9.11?"]]
|
16 |
)
|
17 |
|
18 |
demo.launch()
|