Youssouf Traore
commited on
Commit
·
63ab98e
1
Parent(s):
2f3d17b
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
import requests
|
2 |
import gradio as gr
|
3 |
-
import openai
|
4 |
-
|
5 |
-
openai.api_key = "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"
|
6 |
-
|
7 |
|
8 |
|
9 |
def infer(im):
|
@@ -28,14 +24,13 @@ def infer(im):
|
|
28 |
"rect": poly["dimensions"]
|
29 |
})
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
return blocks
|
34 |
|
35 |
|
36 |
-
iface = gr.Interface(
|
|
|
37 |
title="Mariam - Beta",
|
38 |
-
description=" La maj du siècle.
|
39 |
inputs=[gr.Image(type="pil")],
|
40 |
-
outputs=
|
41 |
).launch()
|
|
|
1 |
import requests
|
2 |
import gradio as gr
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
def infer(im):
|
|
|
24 |
"rect": poly["dimensions"]
|
25 |
})
|
26 |
|
27 |
+
return text
|
|
|
|
|
28 |
|
29 |
|
30 |
+
iface = gr.Interface(
|
31 |
+
fn=infer,
|
32 |
title="Mariam - Beta",
|
33 |
+
description=" La maj du siècle. ",
|
34 |
inputs=[gr.Image(type="pil")],
|
35 |
+
outputs=["text"],
|
36 |
).launch()
|