Spaces:
Runtime error
Runtime error
SusiePHaltmann
commited on
Commit
•
e29f9a0
1
Parent(s):
8471888
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,27 @@
|
|
1 |
from re import I
|
2 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import st
|
4 |
## make a catch 404 statement if there is a bug
|
5 |
import streamlit.components.v1 as components
|
@@ -17,7 +39,8 @@ model = replicate.models.get("pixray/text2image")
|
|
17 |
model.predict(prompts=input("Enter text: "))
|
18 |
## make a streamlit app
|
19 |
|
20 |
-
|
|
|
21 |
## make a streamlit app gui for pixray text2image
|
22 |
import streamlit as st
|
23 |
import numpy as np
|
|
|
1 |
from re import I
|
2 |
+
from os import path
|
3 |
+
from PIL import Image
|
4 |
+
from PIL import ImageFont
|
5 |
+
from PIL import Image
|
6 |
+
from PIL import ImageFont
|
7 |
+
from PIL import Image
|
8 |
+
from PIL import ImageFont
|
9 |
+
from PIL import Image
|
10 |
+
from PIL import ImageDraw
|
11 |
+
from PIL import ImageFont
|
12 |
+
from PIL import Image
|
13 |
+
from PIL import ImageFont
|
14 |
+
from PIL import ImageDraw
|
15 |
+
from PIL import ImageDraw
|
16 |
+
from PIL import ImageFont
|
17 |
+
from PIL import ImageDraw
|
18 |
+
from PIL import ImageFont
|
19 |
+
from PIL import ImageDraw
|
20 |
+
from PIL import ImageFont
|
21 |
+
from PIL import ImageDraw
|
22 |
+
from PIL import ImageFont
|
23 |
+
import os
|
24 |
+
import replicate
|
25 |
import st
|
26 |
## make a catch 404 statement if there is a bug
|
27 |
import streamlit.components.v1 as components
|
|
|
39 |
model.predict(prompts=input("Enter text: "))
|
40 |
## make a streamlit app
|
41 |
|
42 |
+
## fix import replicate
|
43 |
+
|
44 |
## make a streamlit app gui for pixray text2image
|
45 |
import streamlit as st
|
46 |
import numpy as np
|