Victoria Oberascher commited on
Commit
2d9c467
1 Parent(s): ce4a7e9

remove input

Browse files
Files changed (1) hide show
  1. app.py +18 -9
app.py CHANGED
@@ -1,9 +1,18 @@
1
- import evaluate
2
- from evaluate.utils import launch_gradio_widget
3
-
4
- module = evaluate.load("SEA-AI/horizon-metrics",
5
- roll_threshold=0.5,
6
- pitch_threshold=0.1,
7
- vertical_fov_degrees=25.6,
8
- height=512)
9
- launch_gradio_widget(module)
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ import sys
3
+ import gradio as gr
4
+
5
+
6
+ def read_markdown(filepath):
7
+ with open(filepath, 'r') as file:
8
+ return file.read()
9
+
10
+
11
+ local_path = Path(sys.path[0])
12
+ filepath = local_path / "README.md"
13
+ markdown_content = read_markdown(filepath)
14
+
15
+ with gr.Blocks() as demo:
16
+ gr.Markdown(markdown_content)
17
+
18
+ demo.launch()