pakdeveloper commited on
Commit
728b536
·
verified ·
1 Parent(s): d3ba58f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -1,11 +1,8 @@
1
  import os
2
  import gradio as gr
3
 
4
- # Clone the Fooocus repository
5
- os.system("git clone https://github.com/lllyasviel/Fooocus.git")
6
-
7
- # Change directory to Fooocus
8
- os.chdir("Fooocus")
9
 
10
  # Install dependencies
11
  os.system("pip install pygit2==1.15.1")
@@ -16,7 +13,6 @@ from entry_with_update import main
16
  # Define a function to run Fooocus
17
  def run_fooocus(prompt):
18
  # Call Fooocus with the provided prompt
19
- # Modify the `main` function in Fooocus to accept a prompt and return an image
20
  output_image_path = main(prompt)
21
  return output_image_path
22
 
 
1
  import os
2
  import gradio as gr
3
 
4
+ # Change directory to the uploaded Fooocus folder
5
+ os.chdir("Fooocus-main") # Use "Fooocus" if you renamed the folder
 
 
 
6
 
7
  # Install dependencies
8
  os.system("pip install pygit2==1.15.1")
 
13
  # Define a function to run Fooocus
14
  def run_fooocus(prompt):
15
  # Call Fooocus with the provided prompt
 
16
  output_image_path = main(prompt)
17
  return output_image_path
18