File size: 429 Bytes
f17ad12
96a5439
 
 
 
 
 
 
f17ad12
 
 
 
 
51bad0e
96a5439
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()