Spaces:
Sleeping
Sleeping
gradio input bug fix
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -18,8 +18,8 @@ def display_league_info(league_id):
|
|
18 |
# Gradio ์ธํฐํ์ด์ค ์ค์
|
19 |
iface = gr.Interface(
|
20 |
fn=display_league_info,
|
21 |
-
inputs=gr.
|
22 |
-
outputs=
|
23 |
title="ํํ์ง NBA ๋ฆฌ๊ทธ ์ ๋ณด",
|
24 |
description="Sleeper API๋ฅผ ํตํด ์ค์๊ฐ์ผ๋ก ์
๋ฐ์ดํธ๋๋ ํํ์ง NBA ๋ฆฌ๊ทธ ์ ๋ณด๋ฅผ ํ์ธํ์ธ์."
|
25 |
)
|
|
|
18 |
# Gradio ์ธํฐํ์ด์ค ์ค์
|
19 |
iface = gr.Interface(
|
20 |
fn=display_league_info,
|
21 |
+
inputs=gr.Textbox(label="๋ฆฌ๊ทธ ID๋ฅผ ์
๋ ฅํ์ธ์"),
|
22 |
+
outputs=gr.JSON(),
|
23 |
title="ํํ์ง NBA ๋ฆฌ๊ทธ ์ ๋ณด",
|
24 |
description="Sleeper API๋ฅผ ํตํด ์ค์๊ฐ์ผ๋ก ์
๋ฐ์ดํธ๋๋ ํํ์ง NBA ๋ฆฌ๊ทธ ์ ๋ณด๋ฅผ ํ์ธํ์ธ์."
|
25 |
)
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
gradio
|
2 |
requests
|
|
|
1 |
+
gradio>=3.0.0
|
2 |
requests
|