aliabid94 HF staff commited on
Commit
b6b4588
1 Parent(s): a98b824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -23
app.py CHANGED
@@ -1,27 +1,9 @@
1
  import gradio as gr
 
2
 
3
- def respond(msg, history, *args):
4
- return "response"
5
-
6
- demo = gr.ChatInterface(
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()