Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ MAX_SEED = 2**32-1
|
|
10 |
thePrompt ="group of 3boys kissing in bathtub while interracial daddy gives a boy a handjob"
|
11 |
preSetPrompt = thePrompt
|
12 |
negPreSetPrompt = "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness, asian, african, collage, composite, combined image"
|
|
|
13 |
lock = RLock()
|
14 |
HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
|
15 |
# --- Step 2: Authenticate and fetch your models
|
@@ -20,7 +21,7 @@ from handle_models import load_fn,infer,gen_fn
|
|
20 |
from externalmod import gr_Interface_load, save_image, randomize_seed
|
21 |
import asyncio
|
22 |
import os
|
23 |
-
|
24 |
from datetime import datetime
|
25 |
from handlemodelradio import extend_choices,update_imgbox,random_choices
|
26 |
#anything but huggingface_hub==0.26.2 will result in token error
|
|
|
10 |
thePrompt ="group of 3boys kissing in bathtub while interracial daddy gives a boy a handjob"
|
11 |
preSetPrompt = thePrompt
|
12 |
negPreSetPrompt = "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness, asian, african, collage, composite, combined image"
|
13 |
+
from threading import RLock
|
14 |
lock = RLock()
|
15 |
HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None # If private or gated models aren't used, ENV setting is unnecessary.
|
16 |
# --- Step 2: Authenticate and fetch your models
|
|
|
21 |
from externalmod import gr_Interface_load, save_image, randomize_seed
|
22 |
import asyncio
|
23 |
import os
|
24 |
+
|
25 |
from datetime import datetime
|
26 |
from handlemodelradio import extend_choices,update_imgbox,random_choices
|
27 |
#anything but huggingface_hub==0.26.2 will result in token error
|