YKajima commited on
Commit
5f4ddbe
1 Parent(s): 21d09ab

mask user, pass

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -55,7 +55,8 @@ async def summarize(input_text: str, input_url: str):
55
  以下の文章を要約してください。
56
  {url_content}
57
  """
58
- except Exception:
 
59
  raise gr.Error("WEBページの取得に失敗しました。")
60
 
61
  return await FilmCore(
@@ -110,4 +111,4 @@ with gr.Blocks() as iface:
110
 
111
 
112
  if __name__ == "__main__":
113
- iface.launch(auth=("spiralai", "spiralai"), share=True, server_name="0.0.0.0")
 
55
  以下の文章を要約してください。
56
  {url_content}
57
  """
58
+ except Exception as e:
59
+ logger.error(e)
60
  raise gr.Error("WEBページの取得に失敗しました。")
61
 
62
  return await FilmCore(
 
111
 
112
 
113
  if __name__ == "__main__":
114
+ iface.launch(auth=(os.environ.get("GRADIO_USER_NAME"), os.environ.get("GRADIO_PASSWORD")), share=True, server_name="0.0.0.0")