abidlabs HF staff commited on
Commit
afee3c6
·
verified ·
1 Parent(s): 91cc6c1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ with gr.Blocks() as demo:
4
+
5
+ chat = gr.ChatInterface(
6
+ predict,
7
+ type="messages",
8
+ additional_inputs=[
9
+ gr.Slider(1, 2048, value=512, step=1, label="Max tokens",render=False),
10
+ gr.Slider(0.1, 4.0, value=0.9, step=0.1, label="Temperature",render=False),
11
+ gr.Slider(0.1, 1.0, value=0.95, step=0.05, label="Top p ",render=False)
12
+ ],
13
+ editable=True,
14
+ save_history=True
15
+ )
16
+
17
+ demo.launch()