Spaces:
Sleeping
Sleeping
TuanScientist
commited on
Commit
•
4411cc6
1
Parent(s):
0f52a15
Update app.py
Browse files
app.py
CHANGED
@@ -154,10 +154,10 @@ def analyze_file(docx_file):
|
|
154 |
# Return the file paths for the pie chart and excel file
|
155 |
return excel_file_path, pie_chart_name
|
156 |
|
157 |
-
inputs = gr.
|
158 |
outputs = [
|
159 |
-
gr.
|
160 |
-
gr.
|
161 |
]
|
162 |
|
163 |
interface = gr.Interface(
|
@@ -169,4 +169,4 @@ interface = gr.Interface(
|
|
169 |
)
|
170 |
|
171 |
if __name__ == "__main__":
|
172 |
-
interface.launch()
|
|
|
154 |
# Return the file paths for the pie chart and excel file
|
155 |
return excel_file_path, pie_chart_name
|
156 |
|
157 |
+
inputs = gr.File(label="Chọn Tệp Bạn Muốn Phân Tích")
|
158 |
outputs = [
|
159 |
+
gr.File(label="Kết Quả Phân Tích Excel"),
|
160 |
+
gr.Image(type="filepath", label="Thông Số Phân Tích")
|
161 |
]
|
162 |
|
163 |
interface = gr.Interface(
|
|
|
169 |
)
|
170 |
|
171 |
if __name__ == "__main__":
|
172 |
+
interface.launch()
|