Reyad-Ahmmed commited on
Commit
85b077a
·
verified ·
1 Parent(s): 9f8585a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -318,11 +318,11 @@ if (should_train_model=='1'): #train model
318
  #overwrite=True # Force overwrite existing files
319
  )
320
 
321
- url = "http://20.247.235.135/AiBot/BE/api/PromptEnhancer/ExportPEList?modelName=TitanQL&exportType=sentence" # Example API
322
  response = requests.get(url, timeout=120)
323
 
324
  if response.status_code == 200:
325
- data = response.text # Convert response to JSON
326
  print("print data from API: ", data)
327
  else:
328
  print(f"Error: {response.status_code}")
 
318
  #overwrite=True # Force overwrite existing files
319
  )
320
 
321
+ url = "http://210.1.253.35:200/api/hello" # Example API
322
  response = requests.get(url, timeout=120)
323
 
324
  if response.status_code == 200:
325
+ data = response.json # Convert response to JSON
326
  print("print data from API: ", data)
327
  else:
328
  print(f"Error: {response.status_code}")