Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -73,10 +73,11 @@ def run(query):
|
|
73 |
|
74 |
# $
|
75 |
|
|
|
76 |
gradio = show(run,
|
77 |
examples = [rotowire[i][1] for i in range(50, 55)],
|
78 |
subprompts=[extract],
|
79 |
-
code=open("table.py", "r").read().split("$")[1].strip().strip("#").strip(),
|
80 |
out_type="markdown"
|
81 |
)
|
82 |
|
|
|
73 |
|
74 |
# $
|
75 |
|
76 |
+
import os
|
77 |
gradio = show(run,
|
78 |
examples = [rotowire[i][1] for i in range(50, 55)],
|
79 |
subprompts=[extract],
|
80 |
+
code=open("table.py" if os.path.exists("table.py") else "app.py", "r").read().split("$")[1].strip().strip("#").strip(),
|
81 |
out_type="markdown"
|
82 |
)
|
83 |
|