Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def create_interface_from_input(input_str):
|
|
| 82 |
functions = [getattr(module, name) for name in dir(module) if callable(getattr(module, name))]
|
| 83 |
|
| 84 |
function_list = [(func.__name__, func) for func in functions if not func.__name__.startswith("_")]
|
| 85 |
-
return function_list, f"Interface for `{package_name}` created."
|
| 86 |
|
| 87 |
except Exception as e:
|
| 88 |
return [], str(e)
|
|
@@ -95,10 +95,7 @@ def execute_pip_command(command, add_message):
|
|
| 95 |
if output == '' and process.poll() is not None:
|
| 96 |
break
|
| 97 |
if output:
|
| 98 |
-
add_message("System", f"'"
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
\n{output.strip()}\n
|
| 102 |
|
| 103 |
time.sleep(0.1) # Simulate delay for more realistic streaming
|
| 104 |
rc = process.poll()
|
|
|
|
| 82 |
functions = [getattr(module, name) for name in dir(module) if callable(getattr(module, name))]
|
| 83 |
|
| 84 |
function_list = [(func.__name__, func) for func in functions if not func.__name__.startswith("_")]
|
| 85 |
+
return function_list, f"'"Interface for `{package_name}` created."'"
|
| 86 |
|
| 87 |
except Exception as e:
|
| 88 |
return [], str(e)
|
|
|
|
| 95 |
if output == '' and process.poll() is not None:
|
| 96 |
break
|
| 97 |
if output:
|
| 98 |
+
add_message("System", f"'"\n{output.strip()}\n"'"
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
time.sleep(0.1) # Simulate delay for more realistic streaming
|
| 101 |
rc = process.poll()
|