Update app.py
Browse files
app.py
CHANGED
|
@@ -36,10 +36,10 @@ def xml_to_json(url):
|
|
| 36 |
tree = ET.ElementTree(ET.fromstring(xml_string))
|
| 37 |
return json.dumps(etree_to_dict(tree.getroot()))
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
url = "https://www.alatin.com.tr/index.php?do=catalog/output&pCode=4249932787"
|
| 42 |
-
|
| 43 |
def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
| 44 |
headers = {
|
| 45 |
"Content-Type": "application/json",
|
|
|
|
| 36 |
tree = ET.ElementTree(ET.fromstring(xml_string))
|
| 37 |
return json.dumps(etree_to_dict(tree.getroot()))
|
| 38 |
|
| 39 |
+
|
| 40 |
|
| 41 |
url = "https://www.alatin.com.tr/index.php?do=catalog/output&pCode=4249932787"
|
| 42 |
+
print(xml_to_json(url))
|
| 43 |
def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
| 44 |
headers = {
|
| 45 |
"Content-Type": "application/json",
|