Nf / app.py
osmunphotography's picture
Update app.py
96a5439 verified
raw
history blame contribute delete
429 Bytes
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()