Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
08f867e
1
Parent(s):
6520907
Update app.py
Browse files
app.py
CHANGED
@@ -16,5 +16,12 @@ def inference(truncation,seeds):
|
|
16 |
seeds = int(seeds)
|
17 |
image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
|
18 |
return image
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
seeds = int(seeds)
|
17 |
image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
|
18 |
return image
|
19 |
+
|
20 |
+
title = "MammoGANesis"
|
21 |
+
description = "Gradio demo for MammoGANesis. To use it, add seed and truncation, or click one of the examples to load them. Read more at the links below."
|
22 |
+
|
23 |
+
article = "<p style='text-align: center'><a href='https://colab.research.google.com/drive/1ccC4CSWAEqx4BFXZGbPp8PxazdFBvxP4?usp=sharing' target='_blank'>Colab</a></p><center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_mammogan' alt='visitor badge'></center>"
|
24 |
+
|
25 |
+
gr.Interface(inference,["number","number"],"pil",title=title,description=description,article=article, examples=[
|
26 |
+
[0.8,0]
|
27 |
+
]).launch(enable_queue=True,cache_examples=True)
|