Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,20 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from pathlib import Path
|
| 3 |
|
| 4 |
+
running_markdown_content = """
|
| 5 |
+
# Something is running (hopefully!)
|
| 6 |
+
|
| 7 |
+
If all went to plan, something should be running. check the logs.
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
startup_markdown_content = """
|
| 11 |
+
# Welcome! Lets get started...
|
| 12 |
+
|
| 13 |
+
Here we'd want some input from the user to start a run.
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
with gr.Blocks() as demo:
|
| 17 |
+
gr.Markdown(running_markdown_content if Path('data.csv').exists() else startup_markdown_content)
|
| 18 |
+
|
| 19 |
+
if __name__ == '__main__':
|
| 20 |
+
demo.launch()
|