Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,14 +64,20 @@ article = "<div style='text-align: center;'>Twitter <a href='https://twitter.com
|
|
| 64 |
|
| 65 |
gr.Interface(
|
| 66 |
fn=inference,
|
| 67 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
| 68 |
outputs=gr.Image(type="pil", label="Output"),
|
| 69 |
-
title=title,
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
| 77 |
)
|
|
|
|
| 64 |
|
| 65 |
gr.Interface(
|
| 66 |
fn=inference,
|
| 67 |
+
inputs=[
|
| 68 |
+
gr.Image(type="pil", label="Input Image"),
|
| 69 |
+
gr.Radio(['2x', '4x', '8x'], type="value", value='2x', label='Resolution model')
|
| 70 |
+
],
|
| 71 |
outputs=gr.Image(type="pil", label="Output"),
|
| 72 |
+
title=title,
|
| 73 |
+
description=description,
|
| 74 |
+
article=article,
|
| 75 |
+
# Parameter 'examples' DIHAPUS untuk mencegah bug schema parsing
|
| 76 |
+
allow_flagging='never',
|
| 77 |
+
cache_examples=False,
|
| 78 |
+
).queue().launch(
|
| 79 |
+
server_name="0.0.0.0",
|
| 80 |
+
server_port=7860,
|
| 81 |
+
share=True, # WAJIB: Membuat tautan publik agar tidak diblokir oleh proxy Spaces
|
| 82 |
+
show_error=True
|
| 83 |
)
|