Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import os
|
|
| 6 |
import hashlib
|
| 7 |
import threading
|
| 8 |
import asyncio
|
| 9 |
-
|
| 10 |
# Gradio UI
|
| 11 |
#stop_flag = gr.State(value=False)
|
| 12 |
class StopFlag:
|
|
@@ -704,7 +704,7 @@ with gr.Blocks() as interface:
|
|
| 704 |
active_processes = []
|
| 705 |
|
| 706 |
def summarize_results_sync(acc, stop_flag=None):
|
| 707 |
-
return asyncio.run(summarize_results(acc, stop_flag))
|
| 708 |
|
| 709 |
def threaded_batch_runner(file=None, text="", email=""):
|
| 710 |
print("clean everything remain before running")
|
|
|
|
| 6 |
import hashlib
|
| 7 |
import threading
|
| 8 |
import asyncio
|
| 9 |
+
import mtdna_backend
|
| 10 |
# Gradio UI
|
| 11 |
#stop_flag = gr.State(value=False)
|
| 12 |
class StopFlag:
|
|
|
|
| 704 |
active_processes = []
|
| 705 |
|
| 706 |
def summarize_results_sync(acc, stop_flag=None):
|
| 707 |
+
return asyncio.run(mtdna_backend.summarize_results(acc, stop_flag))
|
| 708 |
|
| 709 |
def threaded_batch_runner(file=None, text="", email=""):
|
| 710 |
print("clean everything remain before running")
|