Spaces:
Runtime error
Runtime error
Commit ·
74d37ca
1
Parent(s): c0026e7
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,22 +59,6 @@ def model(text, tokenizer=tokenizer, dalle=dalle, vae=vae, top_k=2048, images_nu
|
|
| 59 |
seed_everything(42)
|
| 60 |
pil_images = []
|
| 61 |
|
| 62 |
-
iface = gr.Interface(fn=model,
|
| 63 |
inputs=[gr.inputs.Textbox(label="Text prompt")],
|
| 64 |
-
outputs=[gr.outputs.Image(type="pil", label="Generated Image")]).launch()
|
| 65 |
-
|
| 66 |
-
#TEST--------
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
#pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
| 70 |
-
|
| 71 |
-
#def predict(image):
|
| 72 |
-
# predictions = pipeline(image)
|
| 73 |
-
# return {p["label"]: p["score"] for p in predictions}
|
| 74 |
-
|
| 75 |
-
#gr.Interface(
|
| 76 |
-
# predict,
|
| 77 |
-
# inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
| 78 |
-
# outputs=gr.outputs.Label(num_top_classes=2),
|
| 79 |
-
# title="Hot Dog? Or Not?",
|
| 80 |
-
#).launch()
|
|
|
|
| 59 |
seed_everything(42)
|
| 60 |
pil_images = []
|
| 61 |
|
| 62 |
+
iface = gr.Interface(fn=model, title="V1",
|
| 63 |
inputs=[gr.inputs.Textbox(label="Text prompt")],
|
| 64 |
+
outputs=[gr.outputs.Image(type="pil", label="Generated Image")]).launch(debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|