Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
import requests
|
|
|
|
|
|
|
|
|
3 |
|
4 |
# Translation function
|
5 |
def translate_to_estonian(text, api_key):
|
|
|
1 |
import streamlit as st
|
2 |
import requests
|
3 |
+
import os
|
4 |
+
|
5 |
+
spoonacular_api_key = os.getenv('SP_KEY') # Spoonacular API key
|
6 |
+
hf_api_key = os.getenv('HF_KEY') # Hugging Face API key
|
7 |
|
8 |
# Translation function
|
9 |
def translate_to_estonian(text, api_key):
|