progress bar
Browse files
app.py
CHANGED
|
@@ -498,7 +498,7 @@ def optimized_bertopic():
|
|
| 498 |
|
| 499 |
global examples
|
| 500 |
|
| 501 |
-
def main(dataset, model):
|
| 502 |
global df
|
| 503 |
examples = [ "katip,katipunan",
|
| 504 |
"bgc,bonifacio global city",
|
|
@@ -549,5 +549,6 @@ iface = gr.Interface(fn=main,
|
|
| 549 |
outputs=["text",
|
| 550 |
"text"],
|
| 551 |
enable_queue=True,
|
| 552 |
-
debug=True
|
|
|
|
| 553 |
iface.launch(debug=True, enable_queue=True)
|
|
|
|
| 498 |
|
| 499 |
global examples
|
| 500 |
|
| 501 |
+
def main(dataset, model, progress=gr.Progress(track_tqdm=True)):
|
| 502 |
global df
|
| 503 |
examples = [ "katip,katipunan",
|
| 504 |
"bgc,bonifacio global city",
|
|
|
|
| 549 |
outputs=["text",
|
| 550 |
"text"],
|
| 551 |
enable_queue=True,
|
| 552 |
+
debug=True,
|
| 553 |
+
)
|
| 554 |
iface.launch(debug=True, enable_queue=True)
|