Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def process_uploaded_file(file):
|
|
| 121 |
# -------------------------------
|
| 122 |
# Bot Streaming Function Using the Multimodal API
|
| 123 |
# -------------------------------
|
| 124 |
-
def bot_streaming(prompt_option, max_new_tokens=
|
| 125 |
"""
|
| 126 |
Build a multimodal message payload and call the inference API.
|
| 127 |
The payload includes:
|
|
@@ -320,7 +320,7 @@ with gr.Blocks() as demo:
|
|
| 320 |
prompt_dropdown = gr.Dropdown(
|
| 321 |
label="Select Prompt",
|
| 322 |
choices=["Software Tester"],
|
| 323 |
-
value="
|
| 324 |
)
|
| 325 |
generate_btn = gr.Button("Generate")
|
| 326 |
|
|
|
|
| 121 |
# -------------------------------
|
| 122 |
# Bot Streaming Function Using the Multimodal API
|
| 123 |
# -------------------------------
|
| 124 |
+
def bot_streaming(prompt_option, max_new_tokens=8192):
|
| 125 |
"""
|
| 126 |
Build a multimodal message payload and call the inference API.
|
| 127 |
The payload includes:
|
|
|
|
| 320 |
prompt_dropdown = gr.Dropdown(
|
| 321 |
label="Select Prompt",
|
| 322 |
choices=["Software Tester"],
|
| 323 |
+
value="Software Tester"
|
| 324 |
)
|
| 325 |
generate_btn = gr.Button("Generate")
|
| 326 |
|