Spaces:
Sleeping
Sleeping
pragnakalp
commited on
Commit
•
11231f5
1
Parent(s):
4b43947
Update app.py
Browse files
app.py
CHANGED
@@ -15,15 +15,18 @@ import socket
|
|
15 |
from send_email_user import send_user_email
|
16 |
from huggingface_hub import HfApi
|
17 |
|
18 |
-
api = HfApi()
|
19 |
-
api.upload_folder(
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
)
|
|
|
|
|
26 |
|
|
|
27 |
# if not os.path.isdir('images'):
|
28 |
# os.mkdir('images')
|
29 |
# print("create folder--->")
|
|
|
15 |
from send_email_user import send_user_email
|
16 |
from huggingface_hub import HfApi
|
17 |
|
18 |
+
# api = HfApi()
|
19 |
+
# api.upload_folder(
|
20 |
+
# folder_path="/media/pragnakalpl20/Projects/Pragnakalp_projects/gradio_demo/images",
|
21 |
+
# path_in_repo="my-dataset/images",
|
22 |
+
# repo_id="pragnakalp/OCR-image-to-text",
|
23 |
+
# repo_type="dataset",
|
24 |
+
# ignore_patterns="**/logs/*.txt",
|
25 |
+
# )
|
26 |
+
url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_image_to_text'
|
27 |
+
myobj = {'Deep': 'Mistry'}
|
28 |
|
29 |
+
x = requests.post(url, json = myobj)
|
30 |
# if not os.path.isdir('images'):
|
31 |
# os.mkdir('images')
|
32 |
# print("create folder--->")
|