Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files185 unmodified lines186187188189189190191192193194195196197198199185 unmodified lines Output: ''' # Call the API for inference response = client.text_generation(text, max_new_tokens=600)#, temperature=0.4, top_k=50, top_p=0.9, repetition_penalty=1.2) response = client.text_generation(text, max_new_tokens=1000)#, temperature=0.4, top_k=50, top_p=0.9, repetition_penalty=1.2) print("parse in text ---:",response)
# Convert the response text to JSON try: json_data = json.loads(response) print("Json_data-------------->",json_data) return json_data except json.JSONDecodeError as e: return {"error": f"Error decoding JSON: {e}"} utility/utils.py+2-1