nateraw's picture
Update app.py
0aa6509
raw
history blame
481 Bytes
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()