Spaces:
Runtime error
Runtime error
๐
Browse filesSigned-off-by: peter szemraj <peterszemraj@gmail.com>
app.py
CHANGED
|
@@ -232,17 +232,16 @@ if __name__ == "__main__":
|
|
| 232 |
)
|
| 233 |
with gr.Column():
|
| 234 |
gr.Markdown("Select an example, or upload a file (`.txt` or `.pdf`)")
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
)
|
| 246 |
with gr.Row():
|
| 247 |
input_text = gr.Textbox(
|
| 248 |
lines=4,
|
|
|
|
| 232 |
)
|
| 233 |
with gr.Column():
|
| 234 |
gr.Markdown("Select an example, or upload a file (`.txt` or `.pdf`)")
|
| 235 |
+
example_name = gr.Dropdown(
|
| 236 |
+
_examples,
|
| 237 |
+
label="Examples",
|
| 238 |
+
value=random.choice(_examples),
|
| 239 |
+
)
|
| 240 |
+
uploaded_file = gr.File(
|
| 241 |
+
label="File Upload",
|
| 242 |
+
file_count="single",
|
| 243 |
+
type="file",
|
| 244 |
+
)
|
|
|
|
| 245 |
with gr.Row():
|
| 246 |
input_text = gr.Textbox(
|
| 247 |
lines=4,
|