Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ async def text_translation_api(text: str, target_language: str):
|
|
70 |
|
71 |
### ENd of Fast API endpoints
|
72 |
|
73 |
-
api = HuggingFaceAPI( {
|
74 |
|
75 |
# Define the function to be called when inputs are provided
|
76 |
def hf_inference_translate(prompt="Wie kann ich Ihnen helfen?", target_language="en"):
|
|
|
70 |
|
71 |
### ENd of Fast API endpoints
|
72 |
|
73 |
+
api = HuggingFaceAPI( {hf_api_key} )
|
74 |
|
75 |
# Define the function to be called when inputs are provided
|
76 |
def hf_inference_translate(prompt="Wie kann ich Ihnen helfen?", target_language="en"):
|