Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,12 @@ import json
|
|
| 6 |
SPACE_URL = "https://abanm-dubs.hf.space/api/generate"
|
| 7 |
API_KEY = "s3cr3t_k3y" # Replace with your actual API key
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Sidebar Configuration
|
| 10 |
with st.sidebar:
|
| 11 |
Dubs_Key = st.text_input("Enter your Dubs Key", key="chatbot_api_key", type="password")
|
|
@@ -49,8 +55,7 @@ def call_api(message):
|
|
| 49 |
except requests.exceptions.RequestException as e:
|
| 50 |
yield f"Error: {str(e)}"
|
| 51 |
|
| 52 |
-
|
| 53 |
-
st.set_page_config(page_title="💬 DUBSChat", layout="centered")
|
| 54 |
|
| 55 |
|
| 56 |
|
|
|
|
| 6 |
SPACE_URL = "https://abanm-dubs.hf.space/api/generate"
|
| 7 |
API_KEY = "s3cr3t_k3y" # Replace with your actual API key
|
| 8 |
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
# Streamlit Configurations (must come first)
|
| 12 |
+
st.set_page_config(page_title="💬 DUBSChat", layout="centered")
|
| 13 |
+
|
| 14 |
+
|
| 15 |
# Sidebar Configuration
|
| 16 |
with st.sidebar:
|
| 17 |
Dubs_Key = st.text_input("Enter your Dubs Key", key="chatbot_api_key", type="password")
|
|
|
|
| 55 |
except requests.exceptions.RequestException as e:
|
| 56 |
yield f"Error: {str(e)}"
|
| 57 |
|
| 58 |
+
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
|