TurkishCodeMan commited on
Commit
ae3c027
·
verified ·
1 Parent(s): 42f6065

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. hf_model.py +1 -2
hf_model.py CHANGED
@@ -38,8 +38,7 @@ def generate_response(
38
  )
39
  return response.choices[0].message.content
40
  except Exception as e:
41
- return f"Error: {str(e)}"
42
-
43
 
44
  def calculate_expression(expression: str) -> str:
45
  """Simple calculator for financial expressions."""
 
38
  )
39
  return response.choices[0].message.content
40
  except Exception as e:
41
+ return f"Error: {repr(e)}\n\n{traceback.format_exc()}"
 
42
 
43
  def calculate_expression(expression: str) -> str:
44
  """Simple calculator for financial expressions."""