Spaces:
Runtime error
Runtime error
boostedhug
commited on
stupid fixes
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def process_image(image):
|
|
32 |
return processed_image
|
33 |
|
34 |
# Launch the Gradio app
|
35 |
-
interface = gr.Interface(fn=process_image, inputs=gr.
|
36 |
interface.launch(server_name="0.0.0.0", server_port=8000)
|
37 |
|
38 |
|
@@ -51,6 +51,7 @@ interface.launch(server_name="0.0.0.0", server_port=8000)
|
|
51 |
|
52 |
|
53 |
|
|
|
54 |
# from fastapi import FastAPI, File, UploadFile
|
55 |
# from fastapi.responses import StreamingResponse, JSONResponse
|
56 |
# from fastapi.middleware.cors import CORSMiddleware
|
|
|
32 |
return processed_image
|
33 |
|
34 |
# Launch the Gradio app
|
35 |
+
interface = gr.Interface(fn=process_image, inputs=gr.Image(type="pil"), outputs=gr.Image(type="pil"))
|
36 |
interface.launch(server_name="0.0.0.0", server_port=8000)
|
37 |
|
38 |
|
|
|
51 |
|
52 |
|
53 |
|
54 |
+
|
55 |
# from fastapi import FastAPI, File, UploadFile
|
56 |
# from fastapi.responses import StreamingResponse, JSONResponse
|
57 |
# from fastapi.middleware.cors import CORSMiddleware
|