Commit
·
7df15c9
1
Parent(s):
3ded6ed
Update save_data.py
Browse files- save_data.py +5 -4
save_data.py
CHANGED
@@ -66,6 +66,11 @@ def flag(audio_file_path,get_audio_name,final_output):
|
|
66 |
|
67 |
print("saving data------------------------")
|
68 |
# try:
|
|
|
|
|
|
|
|
|
|
|
69 |
adversarial_number = 0
|
70 |
adversarial_number = 0 if None else adversarial_number
|
71 |
|
@@ -108,10 +113,6 @@ def flag(audio_file_path,get_audio_name,final_output):
|
|
108 |
adversarial_number+=1
|
109 |
repo.git_pull()
|
110 |
|
111 |
-
ip_address= getIP()
|
112 |
-
print(ip_address)
|
113 |
-
location = get_location(ip_address)
|
114 |
-
print(location)
|
115 |
url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_audio_emotion'
|
116 |
myobj = {'audio_path': repo_audio_path,'final_output':final_output,'ip_addr':ip_address, 'loc':location}
|
117 |
|
|
|
66 |
|
67 |
print("saving data------------------------")
|
68 |
# try:
|
69 |
+
ip_address= getIP()
|
70 |
+
print(ip_address)
|
71 |
+
location = get_location(ip_address)
|
72 |
+
print(location)
|
73 |
+
|
74 |
adversarial_number = 0
|
75 |
adversarial_number = 0 if None else adversarial_number
|
76 |
|
|
|
113 |
adversarial_number+=1
|
114 |
repo.git_pull()
|
115 |
|
|
|
|
|
|
|
|
|
116 |
url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_audio_emotion'
|
117 |
myobj = {'audio_path': repo_audio_path,'final_output':final_output,'ip_addr':ip_address, 'loc':location}
|
118 |
|