Chris4K commited on
Commit
f237cd8
·
1 Parent(s): fd85460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ async def text_translation_api(text: str, target_language: str):
73
 
74
  ### ENd of Fast API endpoints
75
 
76
- api = HuggingFaceAPI( hf_api_key )
77
 
78
  # Define the function to be called when inputs are provided
79
  def hf_inference_translate(prompt="Wie kann ich Ihnen helfen?", target_language="en"):
 
73
 
74
  ### ENd of Fast API endpoints
75
 
76
+ api = HuggingFaceAPI( os.environ.get("hf_api_key") )
77
 
78
  # Define the function to be called when inputs are provided
79
  def hf_inference_translate(prompt="Wie kann ich Ihnen helfen?", target_language="en"):