Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,10 +30,8 @@ def detect(img):
|
|
30 |
|
31 |
with gr.Blocks() as demo:
|
32 |
|
33 |
-
header_html = gr.Html("<h1>foodServed, drinkServed, person, V0.0.1</h1>")
|
34 |
-
|
35 |
with gr.Tab("Upload"):
|
36 |
-
|
37 |
input_img = gr.Image(type='pil')
|
38 |
button = gr.Button("Detect",variant="primary")
|
39 |
|
@@ -45,7 +43,6 @@ with gr.Blocks() as demo:
|
|
45 |
outputs=out_img)
|
46 |
|
47 |
with gr.Tab("Url"):
|
48 |
-
header_html.display()
|
49 |
default_url = 'https://t7.baidu.com/it/u=3601447414,1764260638&fm=193&f=GIF'
|
50 |
url = gr.Textbox(value=default_url)
|
51 |
button = gr.Button("Detect",variant="primary")
|
|
|
30 |
|
31 |
with gr.Blocks() as demo:
|
32 |
|
|
|
|
|
33 |
with gr.Tab("Upload"):
|
34 |
+
gr.Markdown("# foodServed, drinkServed, person, V0.0.1") # Dieser Text wird am Anfang des Tabs angezeigt.
|
35 |
input_img = gr.Image(type='pil')
|
36 |
button = gr.Button("Detect",variant="primary")
|
37 |
|
|
|
43 |
outputs=out_img)
|
44 |
|
45 |
with gr.Tab("Url"):
|
|
|
46 |
default_url = 'https://t7.baidu.com/it/u=3601447414,1764260638&fm=193&f=GIF'
|
47 |
url = gr.Textbox(value=default_url)
|
48 |
button = gr.Button("Detect",variant="primary")
|