Spaces:
Runtime error
Runtime error
Update gradio/app.py
Browse files- gradio/app.py +2 -2
gradio/app.py
CHANGED
|
@@ -270,6 +270,8 @@ import gradio as gr
|
|
| 270 |
from fastapi import FastAPI, File, UploadFile
|
| 271 |
from typing import Dict
|
| 272 |
|
|
|
|
|
|
|
| 273 |
@app.post("/api/compare_face")
|
| 274 |
async def compare_face(image1: UploadFile = File(...), image2: UploadFile = File(...)) -> Dict:
|
| 275 |
# Process the uploaded images
|
|
@@ -278,8 +280,6 @@ async def compare_face(image1: UploadFile = File(...), image2: UploadFile = File
|
|
| 278 |
if __name__ == '__main__':
|
| 279 |
g_activation_result = activate_sdk()
|
| 280 |
# launch_demo(g_activation_result)
|
| 281 |
-
|
| 282 |
-
app = FastAPI()
|
| 283 |
|
| 284 |
gr_app = gr.mount_gradio_app(app, gr.Interface(lambda: None, [], [])) # dummy UI just to mount
|
| 285 |
|
|
|
|
| 270 |
from fastapi import FastAPI, File, UploadFile
|
| 271 |
from typing import Dict
|
| 272 |
|
| 273 |
+
app = FastAPI()
|
| 274 |
+
|
| 275 |
@app.post("/api/compare_face")
|
| 276 |
async def compare_face(image1: UploadFile = File(...), image2: UploadFile = File(...)) -> Dict:
|
| 277 |
# Process the uploaded images
|
|
|
|
| 280 |
if __name__ == '__main__':
|
| 281 |
g_activation_result = activate_sdk()
|
| 282 |
# launch_demo(g_activation_result)
|
|
|
|
|
|
|
| 283 |
|
| 284 |
gr_app = gr.mount_gradio_app(app, gr.Interface(lambda: None, [], [])) # dummy UI just to mount
|
| 285 |
|