Sanster commited on
Commit
204438f
1 Parent(s): 4071752
Files changed (2) hide show
  1. app.py +21 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List
2
+ from pydantic import BaseModel
3
+ from lama_cleaner.server import main
4
+
5
+ class FakeArgs(BaseModel):
6
+ host: str = "0.0.0.0"
7
+ port: int = 7860
8
+ model: str = 'lama'
9
+ hf_access_token: str = ""
10
+ sd_disable_nsfw: bool = False
11
+ sd_cpu_textencoder: bool = True
12
+ sd_run_local: bool = False
13
+ device: str = "cpu"
14
+ gui: bool = False
15
+ gui_size: List[int] = [1000, 1000]
16
+ input: str = ''
17
+ disable_model_switch: bool = True
18
+ debug: bool = False
19
+
20
+ if __name__ == "__main__":
21
+ main(FakeArgs())
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ lama-cleaner