ilhamdev commited on
Commit
e7cfcc3
·
verified ·
1 Parent(s): 9a9d041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -9
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=[gr.Image(type="pil", label="Input Image"), gr.Radio(['2x', '4x', '8x'], type="value", value='2x', label='Resolution model')],
 
 
 
68
  outputs=gr.Image(type="pil", label="Output"),
69
- title=title, description=description, article=article,
70
- examples=[['groot.jpeg', "2x"]], # Pastikan file groot.jpeg ada di repo Anda!
71
- allow_flagging='never', cache_examples=False,
72
- ).queue(api_open=False).launch(
73
- server_name="0.0.0.0",
74
- server_port=7860,
75
- show_error=True,
76
- show_api=False
 
 
 
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
  )