Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,11 +62,7 @@ def text_to_voice(response):
|
|
| 62 |
demo = gr.Interface(
|
| 63 |
fn=respond,
|
| 64 |
inputs=[
|
| 65 |
-
gr.Textbox(value="You are a friendly farming assistant. Answer the user's questions related to farming.", label="System Message"),
|
| 66 |
gr.Textbox(label="Enter your question about farming:"),
|
| 67 |
-
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max New Tokens"),
|
| 68 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 69 |
-
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
| 70 |
],
|
| 71 |
outputs=[
|
| 72 |
gr.Textbox(label="Chatbot Response"),
|
|
|
|
| 62 |
demo = gr.Interface(
|
| 63 |
fn=respond,
|
| 64 |
inputs=[
|
|
|
|
| 65 |
gr.Textbox(label="Enter your question about farming:"),
|
|
|
|
|
|
|
|
|
|
| 66 |
],
|
| 67 |
outputs=[
|
| 68 |
gr.Textbox(label="Chatbot Response"),
|