Update app.py
Browse files
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"):
|