Spaces:
Sleeping
Sleeping
import gradio as gr | |
import subprocess | |
# Correct way to clone using subprocess.run | |
try: | |
subprocess.run(["git", "clone", "https://github.com/lllyasviel/Fooocus.git"], check=True) | |
except subprocess.CalledProcessError as e: | |
print(f"Git clone command failed: {e}") | |
def greet(name): | |
return "Hello " + name + "!!" | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
# Launch the Gradio interface | |
iface.launch() |