Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def call_inference_image(fileobj, scale: int = 2):
|
|
| 23 |
with gr.Blocks() as demo:
|
| 24 |
gr.Markdown("# API-based Upscaler (calls HF Inference API)")
|
| 25 |
with gr.Row():
|
| 26 |
-
inp = gr.Image(type="
|
| 27 |
scale = gr.Slider(2, 8, value=2, step=1, label="Scale (requested)")
|
| 28 |
out_img = gr.Image(label="Result")
|
| 29 |
latency = gr.Textbox(label="Latency")
|
|
|
|
| 23 |
with gr.Blocks() as demo:
|
| 24 |
gr.Markdown("# API-based Upscaler (calls HF Inference API)")
|
| 25 |
with gr.Row():
|
| 26 |
+
inp = gr.Image(type="filepath", label="Upload image")
|
| 27 |
scale = gr.Slider(2, 8, value=2, step=1, label="Scale (requested)")
|
| 28 |
out_img = gr.Image(label="Result")
|
| 29 |
latency = gr.Textbox(label="Latency")
|