Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def filesystem(fex):
|
|
| 14 |
elif file_extension == 'txt':
|
| 15 |
with open(fex, 'r') as f:
|
| 16 |
content = f.read()
|
| 17 |
-
return {txt: gr.Textbox(
|
| 18 |
cd: gr.JSON(visible=False),
|
| 19 |
df: gr.Dataframe(visible=False),
|
| 20 |
im: gr.Image(visible=False),
|
|
|
|
| 14 |
elif file_extension == 'txt':
|
| 15 |
with open(fex, 'r') as f:
|
| 16 |
content = f.read()
|
| 17 |
+
return {txt: gr.Textbox(content, visible=True, label='Selected Textfile'),
|
| 18 |
cd: gr.JSON(visible=False),
|
| 19 |
df: gr.Dataframe(visible=False),
|
| 20 |
im: gr.Image(visible=False),
|