pragnakalp
commited on
Commit
•
7b141a3
1
Parent(s):
e9f045b
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ import smtplib
|
|
31 |
|
32 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
33 |
# name = 'pragnakalp-all-log'
|
34 |
-
|
35 |
print(os.getcwd())
|
36 |
def get_device_ip_address():
|
37 |
|
@@ -202,6 +202,6 @@ demo = gr.Interface(
|
|
202 |
theme="darkpeach",
|
203 |
css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}",
|
204 |
allow_flagging = "manual",
|
205 |
-
flagging_callback =
|
206 |
)
|
207 |
demo.launch(enable_queue = False)
|
|
|
31 |
|
32 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
33 |
# name = 'pragnakalp-all-log'
|
34 |
+
hf_write = gr.HuggingFaceDatasetSaver(HF_TOKEN, 'OCR-image-to-text')
|
35 |
print(os.getcwd())
|
36 |
def get_device_ip_address():
|
37 |
|
|
|
202 |
theme="darkpeach",
|
203 |
css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}",
|
204 |
allow_flagging = "manual",
|
205 |
+
flagging_callback = hf_write
|
206 |
)
|
207 |
demo.launch(enable_queue = False)
|