Spaces:
Runtime error
Runtime error
DiningSystem
commited on
Commit
•
1ede7ab
1
Parent(s):
302bf59
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
import torch
|
4 |
import huggingface_hub as hf
|
|
|
5 |
hf.login(token=os.environ['model_token'])
|
6 |
#remember to login with token before loading model
|
7 |
def text_to_hair(prompt, num_inference_steps=200, guidance_scale=9, model_path ="CVH-vn1210/hair-model"):
|
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
import torch
|
4 |
import huggingface_hub as hf
|
5 |
+
import os
|
6 |
hf.login(token=os.environ['model_token'])
|
7 |
#remember to login with token before loading model
|
8 |
def text_to_hair(prompt, num_inference_steps=200, guidance_scale=9, model_path ="CVH-vn1210/hair-model"):
|