Update app.py
Browse files
app.py
CHANGED
|
@@ -1,27 +1,9 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
respond,
|
| 8 |
-
additional_inputs=[
|
| 9 |
-
gr.Dropdown([
|
| 10 |
-
'Meta-Llama-3-70B-Instruct-Q3_K_M.gguf',
|
| 11 |
-
'gemma-2-27b-it-Q8_0.gguf'
|
| 12 |
-
],
|
| 13 |
-
value="gemma-2-27b-it-Q8_0.gguf",
|
| 14 |
-
label="Model"
|
| 15 |
-
),
|
| 16 |
-
gr.Textbox(value="You are a helpful assistant.", label="System message"),
|
| 17 |
-
gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
|
| 18 |
-
],
|
| 19 |
-
description="Llama-cpp-agent: Chat multi llm selection",
|
| 20 |
-
chatbot=gr.Chatbot(
|
| 21 |
-
scale=1,
|
| 22 |
-
placeholder="PLACEHOLDER",
|
| 23 |
-
show_copy_button=True
|
| 24 |
-
)
|
| 25 |
-
)
|
| 26 |
|
| 27 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio_modal import Modal
|
| 3 |
|
| 4 |
+
with gr.Blocks() as demo:
|
| 5 |
+
gr.Textbox()
|
| 6 |
+
with gr.Modal(visible=True):
|
| 7 |
+
gr.Number()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
demo.launch()
|