nateraw commited on
Commit
0aa6509
·
1 Parent(s): 43b5530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -1,3 +1,20 @@
1
  import gradio as gr
 
2
 
3
- gr.Interface(lambda x: f"Hello, {x}!", "text", "text").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()