Shreyas094 commited on
Commit
6db5c55
·
verified ·
1 Parent(s): e884c7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,6 +24,7 @@ headers = {"Authorization": f"Bearer {os.getenv('HUGGINGFACE_TOKEN')}"}
24
  def query_llama(payload):
25
  """Send a query to the Llama model via Hugging Face API"""
26
  try:
 
27
  response = requests.post(API_URL, headers=headers, json=payload)
28
  response.raise_for_status()
29
  return response.json()
@@ -238,4 +239,4 @@ iface = gr.Interface(
238
  description="Enter a company name or financial topic to get a summary of recent financial news."
239
  )
240
 
241
- iface.launch()
 
24
  def query_llama(payload):
25
  """Send a query to the Llama model via Hugging Face API"""
26
  try:
27
+ print(f"Payload: {payload}") # Debug: Print payload
28
  response = requests.post(API_URL, headers=headers, json=payload)
29
  response.raise_for_status()
30
  return response.json()
 
239
  description="Enter a company name or financial topic to get a summary of recent financial news."
240
  )
241
 
242
+ iface.launch()