pragnakalp
commited on
Commit
•
0ed5cd5
1
Parent(s):
7b1ec01
Change dataset name dev 33
Browse files
app.py
CHANGED
@@ -30,7 +30,8 @@ import smtplib
|
|
30 |
# print("create folder--->")
|
31 |
|
32 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
33 |
-
|
|
|
34 |
print(os.getcwd())
|
35 |
def get_device_ip_address():
|
36 |
|
@@ -201,6 +202,6 @@ demo = gr.Interface(
|
|
201 |
theme="darkpeach",
|
202 |
css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}",
|
203 |
allow_flagging = "manual",
|
204 |
-
flagging_callback=hf_writer
|
205 |
)
|
206 |
demo.launch(enable_queue = False)
|
|
|
30 |
# print("create folder--->")
|
31 |
|
32 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
33 |
+
name = 'pragnakalp-all-log'
|
34 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, name)
|
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_writer
|
206 |
)
|
207 |
demo.launch(enable_queue = False)
|