Mentosyevsky commited on
Commit
83551d0
·
verified ·
1 Parent(s): 6dca484

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -43,8 +43,8 @@ with gr.Blocks(theme=gr.themes.Default(spacing_size="sm")) as app:
43
  with gr.Row():
44
  with gr.Column(scale=2):
45
  file_input = gr.File(
46
- label="📁 Upload Document (Supports PDF/DOCX/Text)",
47
- file_types=[".pdf", ".docx", ".txt"]
48
  )
49
  with gr.Column(scale=3):
50
  text_input = gr.Textbox(
@@ -80,11 +80,10 @@ with gr.Blocks(theme=gr.themes.Default(spacing_size="sm")) as app:
80
  api_name="analyze"
81
  )
82
 
 
 
83
  app.launch(
84
  server_name="0.0.0.0",
85
  share=False,
86
  favicon_path="https://example.com/favicon.ico"
87
  )
88
-
89
- # 启动应用
90
- interface.launch(debug=True)
 
43
  with gr.Row():
44
  with gr.Column(scale=2):
45
  file_input = gr.File(
46
+ label="📁 Upload File (Text / Video / Audio)",
47
+ file_types=[".pdf", ".docx", ".txt", ".mp4", ".mov", ".wav", ".mp3", ".m4a"]
48
  )
49
  with gr.Column(scale=3):
50
  text_input = gr.Textbox(
 
80
  api_name="analyze"
81
  )
82
 
83
+
84
+ # 启动应用
85
  app.launch(
86
  server_name="0.0.0.0",
87
  share=False,
88
  favicon_path="https://example.com/favicon.ico"
89
  )