inoutro commited on
Commit
bd6de5d
ยท
1 Parent(s): a44bcd2

gradio input bug fix

Browse files
Files changed (2) hide show
  1. app.py +2 -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.inputs.Textbox(label="๋ฆฌ๊ทธ ID๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”"),
22
- outputs="json",
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