Update app.py
Browse files
app.py
CHANGED
|
@@ -51,6 +51,7 @@ model_18=models[18]
|
|
| 51 |
model_19=models[19]
|
| 52 |
model_20=models[20]
|
| 53 |
|
|
|
|
| 54 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link",live=True, preprocess=True)
|
| 55 |
|
| 56 |
proc1=gr.Interface.load(f"models/{model_1}",live=False,preprocess=True, postprocess=False)
|
|
@@ -81,6 +82,13 @@ def greet(name):
|
|
| 81 |
return "Hello " + name + "!!"
|
| 82 |
|
| 83 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
demo = gr.Interface(
|
| 85 |
image_mod,
|
| 86 |
gr.Image(type="pil"),
|
|
@@ -95,5 +103,4 @@ demo = gr.Interface(
|
|
| 95 |
)
|
| 96 |
|
| 97 |
|
| 98 |
-
#iface.launch()
|
| 99 |
demo.launch()
|
|
|
|
| 51 |
model_19=models[19]
|
| 52 |
model_20=models[20]
|
| 53 |
|
| 54 |
+
"""
|
| 55 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link",live=True, preprocess=True)
|
| 56 |
|
| 57 |
proc1=gr.Interface.load(f"models/{model_1}",live=False,preprocess=True, postprocess=False)
|
|
|
|
| 82 |
return "Hello " + name + "!!"
|
| 83 |
|
| 84 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 85 |
+
|
| 86 |
+
iface.launch()
|
| 87 |
+
"""
|
| 88 |
+
def image_mod(image):
|
| 89 |
+
return image.rotate(45)
|
| 90 |
+
|
| 91 |
+
|
| 92 |
demo = gr.Interface(
|
| 93 |
image_mod,
|
| 94 |
gr.Image(type="pil"),
|
|
|
|
| 103 |
)
|
| 104 |
|
| 105 |
|
|
|
|
| 106 |
demo.launch()
|