Update app.py
Browse files23 unmodified lines242526272829208 unmodified lines23823924024123 unmodified linesdef query_llama(payload):"""Send a query to the Llama model via Hugging Face API"""try:response = requests.post(API_URL, headers=headers, json=payload)response.raise_for_status()return response.json()208 unmodified linesdescription="Enter a company name or financial topic to get a summary of recent financial news.")iface.launch()23 unmodified lines24252627282930208 unmodified lines23924024124223 unmodified linesdef query_llama(payload):"""Send a query to the Llama model via Hugging Face API"""try:print(f"Payload: {payload}") # Debug: Print payloadresponse = requests.post(API_URL, headers=headers, json=payload)response.raise_for_status()return response.json()208 unmodified linesdescription="Enter a company name or financial topic to get a summary of recent financial news.")iface.launch()
app.py+2-1