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