Spaces:
Runtime error
Runtime error
temp-9384289
commited on
Commit
·
ba22319
1
Parent(s):
e6a4808
imageslidertest
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ import requests
|
|
18 |
import matplotlib.pyplot as plt
|
19 |
import os
|
20 |
from pytorch_msssim import ssim, ms_ssim, SSIM, MS_SSIM
|
|
|
21 |
|
22 |
# os.environ['KMP_DUPLICATE_LIB_OK']='TRUE'
|
23 |
|
@@ -190,5 +191,6 @@ def getModel(model):
|
|
190 |
|
191 |
|
192 |
import gradio as gr
|
193 |
-
|
|
|
194 |
interface.launch()
|
|
|
18 |
import matplotlib.pyplot as plt
|
19 |
import os
|
20 |
from pytorch_msssim import ssim, ms_ssim, SSIM, MS_SSIM
|
21 |
+
from gradio_imageslider import ImageSlider
|
22 |
|
23 |
# os.environ['KMP_DUPLICATE_LIB_OK']='TRUE'
|
24 |
|
|
|
191 |
|
192 |
|
193 |
import gradio as gr
|
194 |
+
output = ImageSlider("image")
|
195 |
+
interface = gr.Interface(fn=getModel, inputs=[gr.Dropdown(modellist)], css="#output_image{width: 256px !important; height: 256px !important;}", outputs=output, title='Model Problems (infringement)') # outputs="image",
|
196 |
interface.launch()
|