Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import requests
|
| 2 |
import gradio as gr
|
| 3 |
import json
|
| 4 |
-
|
| 5 |
def get_api(inp,call,val,tot):
|
| 6 |
if not tot:
|
| 7 |
r = requests.get(f'{inp}?{call}={val}')
|
|
@@ -15,7 +15,7 @@ def get_api(inp,call,val,tot):
|
|
| 15 |
r = requests.get(f'{inp}?{call}={i}')
|
| 16 |
new_data=r.text
|
| 17 |
new_dict = json.loads(new_data)
|
| 18 |
-
if '2024' in new_dict
|
| 19 |
#data = dict(data) + dict(new_data)
|
| 20 |
#out={"id":r.text['id']}
|
| 21 |
#print (out)
|
|
|
|
| 1 |
import requests
|
| 2 |
import gradio as gr
|
| 3 |
import json
|
| 4 |
+
#132942
|
| 5 |
def get_api(inp,call,val,tot):
|
| 6 |
if not tot:
|
| 7 |
r = requests.get(f'{inp}?{call}={val}')
|
|
|
|
| 15 |
r = requests.get(f'{inp}?{call}={i}')
|
| 16 |
new_data=r.text
|
| 17 |
new_dict = json.loads(new_data)
|
| 18 |
+
if '2024' in new_dict:
|
| 19 |
#data = dict(data) + dict(new_data)
|
| 20 |
#out={"id":r.text['id']}
|
| 21 |
#print (out)
|