Spaces:
Runtime error
Runtime error
verkaDerkaDerk
commited on
Commit
•
5cd22ee
1
Parent(s):
3fd940d
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,17 @@ def greet(name):
|
|
17 |
def main():
|
18 |
if True:
|
19 |
#gr.Interface(fn=greet, inputs="text", outputs="text").launch()
|
20 |
-
gr.Interface(fn=imagine, inputs="text", outputs="image").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
else:
|
22 |
idk()
|
23 |
|
|
|
17 |
def main():
|
18 |
if True:
|
19 |
#gr.Interface(fn=greet, inputs="text", outputs="text").launch()
|
20 |
+
#gr.Interface(fn=imagine, inputs="text", outputs="image").launch()
|
21 |
+
#gr.Image(type="pil")
|
22 |
+
gr.Interface(fn=imagine, inputs="text", outputs="pil").launch()
|
23 |
+
|
24 |
+
# demo = gr.Interface(image_mod, gr.Image(type="pil"), "image",
|
25 |
+
#flagging_options=["blurry", "incorrect", "other"], examples=[
|
26 |
+
# os.path.join(os.path.dirname(__file__), "images/cheetah1.jpg"),
|
27 |
+
# os.path.join(os.path.dirname(__file__), "images/lion.jpg"),
|
28 |
+
# os.path.join(os.path.dirname(__file__), "images/logo.png")
|
29 |
+
#])
|
30 |
+
|
31 |
else:
|
32 |
idk()
|
33 |
|