Spaces:
Runtime error
Runtime error
Commit
·
eab34ad
1
Parent(s):
f95e705
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import gradio
|
| 2 |
import cv2
|
| 3 |
|
| 4 |
|
|
@@ -13,7 +13,7 @@ def inference(img, in_bright, in_contrast):
|
|
| 13 |
# For Spaces usage, head to https://huggingface.co/docs/hub/spaces
|
| 14 |
iface = gradio.Interface(
|
| 15 |
fn=inference,
|
| 16 |
-
inputs=['image',
|
| 17 |
outputs='image',
|
| 18 |
title='Change Image',
|
| 19 |
description='Interface!',
|
|
|
|
| 1 |
+
import gradio
|
| 2 |
import cv2
|
| 3 |
|
| 4 |
|
|
|
|
| 13 |
# For Spaces usage, head to https://huggingface.co/docs/hub/spaces
|
| 14 |
iface = gradio.Interface(
|
| 15 |
fn=inference,
|
| 16 |
+
inputs=['image',gradio.Slider(0,100),gradio.Slider(0,100)],
|
| 17 |
outputs='image',
|
| 18 |
title='Change Image',
|
| 19 |
description='Interface!',
|