TuanScientist commited on
Commit
77592b0
·
1 Parent(s): 6f6118e

Rename app1.py to app.py

Browse files
Files changed (1) hide show
  1. app1.py → app.py +3 -3
app1.py → app.py RENAMED
@@ -161,12 +161,12 @@ def generate_excel_file(df):
161
 
162
  inputs = [
163
  gr.inputs.Textbox(label="Nhập Văn Bản"),
164
- gr.inputs.File(label="Chọn Tệp Bạn Muốn Phân Tích")
165
  ]
166
 
167
  outputs = [
168
  gr.outputs.File(label="Kết Quả Phân Tích Excel"),
169
- gr.outputs.Image(type="filepath", label="Thông Số Phân Tích")
170
  ]
171
 
172
  interface = gr.Interface(
@@ -178,4 +178,4 @@ interface = gr.Interface(
178
  )
179
 
180
  if __name__ == "__main__":
181
- interface.launch(share=True)
 
161
 
162
  inputs = [
163
  gr.inputs.Textbox(label="Nhập Văn Bản"),
164
+ gr.inputs.File(label="Chọn Tệp File Word(docx) Bạn Muốn Phân Tích")
165
  ]
166
 
167
  outputs = [
168
  gr.outputs.File(label="Kết Quả Phân Tích Excel"),
169
+ gr.outputs.Image(type="filepath", label="Biểu đồ")
170
  ]
171
 
172
  interface = gr.Interface(
 
178
  )
179
 
180
  if __name__ == "__main__":
181
+ interface.launch()