Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=256
|
|
44 |
|
45 |
# Additional input components for Gradio interface
|
46 |
additional_inputs=[
|
47 |
-
gr.File(label="Upload CSV or Document", type="
|
48 |
gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs"),
|
49 |
gr.Slider(label="Max new tokens", value=256, minimum=0, maximum=5120, step=64, interactive=True, info="The maximum numbers of new tokens"),
|
50 |
gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Higher values sample more low-probability tokens"),
|
|
|
44 |
|
45 |
# Additional input components for Gradio interface
|
46 |
additional_inputs=[
|
47 |
+
gr.File(label="Upload CSV or Document", type="binary"), # Max file size is 2 GB
|
48 |
gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs"),
|
49 |
gr.Slider(label="Max new tokens", value=256, minimum=0, maximum=5120, step=64, interactive=True, info="The maximum numbers of new tokens"),
|
50 |
gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Higher values sample more low-probability tokens"),
|