Spaces:
Build error
Build error
simayhosmeyve
commited on
Commit
•
1488361
1
Parent(s):
6dfc4e1
Update app.py
Browse files
app.py
CHANGED
@@ -534,6 +534,6 @@ def psnr(Input, Choice, MAX=None):
|
|
534 |
|
535 |
import gradio as gr
|
536 |
|
537 |
-
iface = gr.Interface(fn=[result,psnr], inputs=[gr.inputs.Image(type="numpy",image_mode="RGB"),gr.inputs.Radio(["Coloring","Enhancement","Repair","Repair and Color"])], outputs=[gr.outputs.Image( type="auto", label=None),gr.outputs.Textbox(type="number",label="psnr")],theme="grass",live=True
|
538 |
,css=""" body {background-color: rgba(127,191,63,0.48)} """,title="Image Enhancement",article=""" <a href="https://docs.google.com/document/d/19k6dyR5x_hd1M0yoU8i49dlDWvFmtnBT/edit?usp=sharing&ouid=115743073712072785012&rtpof=true&sd=true" download="example.docx"><img src="https://img.icons8.com/external-itim2101-lineal-color-itim2101/64/000000/external-article-blogger-and-influencer-itim2101-lineal-color-itim2101-1.png" alt="Article"></a>""",examples=[["dog.jpg","Coloring"],["woman.png","Coloring"]])
|
539 |
iface.launch(debug="False",show_tips="True",inbrowser=True)
|
|
|
534 |
|
535 |
import gradio as gr
|
536 |
|
537 |
+
iface = gr.Interface(fn=[result,psnr], inputs=[gr.inputs.Image(type="numpy",image_mode="RGB"),gr.inputs.Radio(["Coloring","Enhancement","Repair","Repair and Color"]),gradio.inputs.Slider(self, minimum=0, maximum=300, step=50, default=300)], outputs=[gr.outputs.Image( type="auto", label=None),gr.outputs.Textbox(type="number",label="psnr")],theme="grass",live=True
|
538 |
,css=""" body {background-color: rgba(127,191,63,0.48)} """,title="Image Enhancement",article=""" <a href="https://docs.google.com/document/d/19k6dyR5x_hd1M0yoU8i49dlDWvFmtnBT/edit?usp=sharing&ouid=115743073712072785012&rtpof=true&sd=true" download="example.docx"><img src="https://img.icons8.com/external-itim2101-lineal-color-itim2101/64/000000/external-article-blogger-and-influencer-itim2101-lineal-color-itim2101-1.png" alt="Article"></a>""",examples=[["dog.jpg","Coloring"],["woman.png","Coloring"]])
|
539 |
iface.launch(debug="False",show_tips="True",inbrowser=True)
|