deepkyu
commited on
Commit
·
7256dd3
1
Parent(s):
7773d6f
fix app.py to apply the changes in `gradio==3.37.0`
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ title: theme
|
|
| 5 |
colorFrom: orange
|
| 6 |
colorTo: purple
|
| 7 |
sdk: gradio
|
| 8 |
-
sdk_version: 3.
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
|
|
|
| 5 |
colorFrom: orange
|
| 6 |
colorTo: purple
|
| 7 |
sdk: gradio
|
| 8 |
+
sdk_version: 3.37.0
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
app.py
CHANGED
|
@@ -65,7 +65,7 @@ with gr.Blocks(theme='nota-ai/theme') as demo:
|
|
| 65 |
check = gr.Checkbox(label="Go")
|
| 66 |
with gr.Column(variant="panel", scale=2):
|
| 67 |
img = gr.Image(
|
| 68 |
-
"https://
|
| 69 |
).style(height=320)
|
| 70 |
with gr.Row():
|
| 71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
|
@@ -75,7 +75,7 @@ with gr.Blocks(theme='nota-ai/theme') as demo:
|
|
| 75 |
|
| 76 |
def go(*args):
|
| 77 |
time.sleep(3)
|
| 78 |
-
return "https://
|
| 79 |
|
| 80 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
| 81 |
|
|
|
|
| 65 |
check = gr.Checkbox(label="Go")
|
| 66 |
with gr.Column(variant="panel", scale=2):
|
| 67 |
img = gr.Image(
|
| 68 |
+
"https://raw.githubusercontent.com/gradio-app/gradio/main/js/_website/src/assets/img/header-image.jpg", label="Image"
|
| 69 |
).style(height=320)
|
| 70 |
with gr.Row():
|
| 71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
|
|
|
| 75 |
|
| 76 |
def go(*args):
|
| 77 |
time.sleep(3)
|
| 78 |
+
return "https://raw.githubusercontent.com/gradio-app/gradio/main/js/_website/src/assets/img/header-image.jpg"
|
| 79 |
|
| 80 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
| 81 |
|