Update app.py
Browse files
app.py
CHANGED
|
@@ -67,4 +67,20 @@ with gr.Blocks() as demo:
|
|
| 67 |
outputs=output
|
| 68 |
)
|
| 69 |
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
outputs=output
|
| 68 |
)
|
| 69 |
|
| 70 |
+
iface = gr.Interface(
|
| 71 |
+
fn=generate_response,
|
| 72 |
+
inputs=[
|
| 73 |
+
gr.Textbox(label="Prompt", lines=6, placeholder="Ask something..."),
|
| 74 |
+
gr.Slider(minimum=0.1, maximum=1.5, value=0.7, step=0.1, label="Temperature"),
|
| 75 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.9, step=0.05, label="Top-p"),
|
| 76 |
+
gr.Slider(minimum=32, maximum=2048, value=512, step=32, label="Max New Tokens"),
|
| 77 |
+
gr.Slider(minimum=1.0, maximum=2.0, value=1.1, step=0.1, label="Repetition Penalty")
|
| 78 |
+
],
|
| 79 |
+
outputs="text",
|
| 80 |
+
title="🧠 DeepSeek LLM Chat with Parameter Tuning",
|
| 81 |
+
theme=gr.themes.Soft()
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
# demo.launch()
|
| 86 |
+
iface.launch()
|