Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ with gr.Blocks() as demo:
|
|
21 |
""")
|
22 |
with gr.Row():
|
23 |
text_input = gr.Textbox(placeholder="Enter prompt")
|
24 |
-
file_input = gr.File(label="Upload File", type="
|
25 |
with gr.Column():
|
26 |
out = gr.Textbox(label="Number of tokens")
|
27 |
run_btn = gr.Button("Run")
|
|
|
21 |
""")
|
22 |
with gr.Row():
|
23 |
text_input = gr.Textbox(placeholder="Enter prompt")
|
24 |
+
file_input = gr.File(label="Upload File", type="bytes") # Change type to "byte"
|
25 |
with gr.Column():
|
26 |
out = gr.Textbox(label="Number of tokens")
|
27 |
run_btn = gr.Button("Run")
|