Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
fdd31f4
1
Parent(s):
08f867e
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,6 @@ description = "Gradio demo for MammoGANesis. To use it, add seed and truncation,
|
|
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,["
|
26 |
[0.8,0]
|
27 |
]).launch(enable_queue=True,cache_examples=True)
|
|
|
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,[gr.inputs.Slider(label="truncation",minimum=0, maximum=5, step=0.1, default=0.8),gr.inputs.Slider(label="Seed",minimum=0, maximum=1000, step=1, default=0)],"pil",title=title,description=description,article=article, examples=[
|
26 |
[0.8,0]
|
27 |
]).launch(enable_queue=True,cache_examples=True)
|