Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import numpy as np
|
|
3 |
import gradio as gr
|
4 |
def generate_img(prompt):
|
5 |
client = Client("ameerazam08/SDXS-GPU-Demo")
|
|
|
6 |
result = client.predict(
|
7 |
prompt=prompt,
|
8 |
api_name="/generate_image"
|
@@ -10,11 +11,12 @@ def generate_img(prompt):
|
|
10 |
return result
|
11 |
|
12 |
|
13 |
-
|
14 |
def interrogate(img):
|
15 |
from gradio_client import Client
|
16 |
-
|
17 |
client = Client("https://pharmapsychotic-clip-interrogator.hf.space/")
|
|
|
18 |
result = client.predict(
|
19 |
img, # str (filepath or URL to image)
|
20 |
"ViT-L (best for Stable Diffusion 1.*)", # str (Option from: ['ViT-L (best for Stable Diffusion 1.*)'])
|
|
|
3 |
import gradio as gr
|
4 |
def generate_img(prompt):
|
5 |
client = Client("ameerazam08/SDXS-GPU-Demo")
|
6 |
+
client.view_api()
|
7 |
result = client.predict(
|
8 |
prompt=prompt,
|
9 |
api_name="/generate_image"
|
|
|
11 |
return result
|
12 |
|
13 |
|
14 |
+
|
15 |
def interrogate(img):
|
16 |
from gradio_client import Client
|
17 |
+
|
18 |
client = Client("https://pharmapsychotic-clip-interrogator.hf.space/")
|
19 |
+
client.view_api()
|
20 |
result = client.predict(
|
21 |
img, # str (filepath or URL to image)
|
22 |
"ViT-L (best for Stable Diffusion 1.*)", # str (Option from: ['ViT-L (best for Stable Diffusion 1.*)'])
|