Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ with gr.Blocks() as demo:
|
|
| 27 |
with gr.Row():
|
| 28 |
file = gr.inputs.File(type="file", label="Upload CSV")
|
| 29 |
key = gr.Textbox(placeholder="Paste OPENAI API KEY")
|
| 30 |
-
out = gr.DataFrame()
|
| 31 |
|
| 32 |
btn = gr.Button("Execute")
|
| 33 |
btn.click(fn=process_file, inputs=[file, key], outputs=out)
|
|
|
|
| 27 |
with gr.Row():
|
| 28 |
file = gr.inputs.File(type="file", label="Upload CSV")
|
| 29 |
key = gr.Textbox(placeholder="Paste OPENAI API KEY")
|
| 30 |
+
out = gr.DataFrame(type="pandas")
|
| 31 |
|
| 32 |
btn = gr.Button("Execute")
|
| 33 |
btn.click(fn=process_file, inputs=[file, key], outputs=out)
|