Spaces:
Runtime error
Runtime error
SMeyersMrOvkill
commited on
Commit
•
5c12313
1
Parent(s):
0531416
import base64 dumbass
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ import random
|
|
8 |
from PIL import Image
|
9 |
from typing import Union
|
10 |
import os
|
|
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
print(f"Using {device}" if device != "cpu" else "Using CPU")
|
@@ -110,7 +111,6 @@ def simple_desc(img, prompt):
|
|
110 |
ifc_imgprompt2text = gr.Interface(simple_desc, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")], outputs=[gr.Textbox(label="description"), gr.JSON(label="json")])
|
111 |
|
112 |
|
113 |
-
|
114 |
"""
|
115 |
with gr.Blocks() as demo:
|
116 |
|
|
|
8 |
from PIL import Image
|
9 |
from typing import Union
|
10 |
import os
|
11 |
+
import base64
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
print(f"Using {device}" if device != "cpu" else "Using CPU")
|
|
|
111 |
ifc_imgprompt2text = gr.Interface(simple_desc, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")], outputs=[gr.Textbox(label="description"), gr.JSON(label="json")])
|
112 |
|
113 |
|
|
|
114 |
"""
|
115 |
with gr.Blocks() as demo:
|
116 |
|