ginipick commited on
Commit
8249102
ยท
verified ยท
1 Parent(s): c81422b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -348,5 +348,10 @@ with gr.Blocks(css=css, title="Time Stream", show_api=False) as demo:
348
  )
349
 
350
  if __name__ == "__main__":
351
- # Gradio API ์Šคํ‚ค๋งˆ๋ฅผ ํ‘œ์‹œํ•˜์ง€ ์•Š์œผ๋ ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด show_api=False ์˜ต์…˜์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
352
- demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)
 
 
 
 
 
 
348
  )
349
 
350
  if __name__ == "__main__":
351
+ # Disable the OpenAPI endpoint by setting enable_api=False for newer Gradio
352
+ # (If you have an older version that accepts show_api=False here, use that instead)
353
+ demo.launch(
354
+ server_name="0.0.0.0",
355
+ server_port=7860,
356
+ enable_api=False
357
+ )