Spaces:
Running
Running
Upload 2 files
Browse files- app.py +1 -1
- requirements.txt +1 -6
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def predict(ImageUrl,imgDraw,imgUplod):
|
|
| 39 |
#gradio interface
|
| 40 |
interface = gr.Interface(
|
| 41 |
fn=predict,
|
| 42 |
-
inputs=["text",gr.
|
| 43 |
outputs="text",
|
| 44 |
title=title,
|
| 45 |
description=description,
|
|
|
|
| 39 |
#gradio interface
|
| 40 |
interface = gr.Interface(
|
| 41 |
fn=predict,
|
| 42 |
+
inputs=["text", gr.Image(type="pil"), gr.Image(type="pil")],
|
| 43 |
outputs="text",
|
| 44 |
title=title,
|
| 45 |
description=description,
|
requirements.txt
CHANGED
|
@@ -1,9 +1,4 @@
|
|
| 1 |
transformers
|
| 2 |
torch
|
| 3 |
-
gradio==3.50.2
|
| 4 |
pillow
|
| 5 |
-
requests
|
| 6 |
-
fastapi==0.104.1
|
| 7 |
-
starlette==0.27.0
|
| 8 |
-
pydantic==1.10.13
|
| 9 |
-
jinja2<3.1.4
|
|
|
|
| 1 |
transformers
|
| 2 |
torch
|
|
|
|
| 3 |
pillow
|
| 4 |
+
requests
|
|
|
|
|
|
|
|
|
|
|
|