mrs83 commited on
Commit
07c2818
·
1 Parent(s): 25867f1
blossomtune_gradio/processing.py CHANGED
@@ -1,7 +1,6 @@
1
  import os
2
  import shutil
3
  import sqlite3
4
- import importlib
5
  import threading
6
  import subprocess
7
 
@@ -70,10 +69,11 @@ def start_runner(
70
  (num_partitions,),
71
  )
72
  conn.commit()
73
- try:
74
- runner_app_path = os.path.dirname(importlib.import_module(runner_app).__file__)
75
- except ModuleNotFoundError:
76
- return False, f"Unable to find app module '{runner_app}'."
 
77
  command = [
78
  shutil.which("flwr"),
79
  "run",
 
1
  import os
2
  import shutil
3
  import sqlite3
 
4
  import threading
5
  import subprocess
6
 
 
69
  (num_partitions,),
70
  )
71
  conn.commit()
72
+
73
+ runner_app_path = runner_app.replace(".", os.path.sep)
74
+ if not os.path.exists(runner_app_path):
75
+ return False, f"Unable to find app path '{runner_app_path}'."
76
+
77
  command = [
78
  shutil.which("flwr"),
79
  "run",
flower_apps/__init__.py DELETED
File without changes
flower_apps/quickstart_huggingface/__init__.py DELETED
File without changes