Spaces:
Runtime error
Runtime error
Commit
·
c0e36ed
1
Parent(s):
b40b633
Update main.py
Browse files
main.py
CHANGED
|
@@ -57,11 +57,12 @@ class UserInterface():
|
|
| 57 |
def form_data(self):
|
| 58 |
|
| 59 |
try:
|
| 60 |
-
if not self.API_KEY.startswith('hf_'):
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
else:
|
| 64 |
-
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
if "messages" not in st.session_state:
|
|
|
|
| 57 |
def form_data(self):
|
| 58 |
|
| 59 |
try:
|
| 60 |
+
# if not self.API_KEY.startswith('hf_'):
|
| 61 |
+
# st.warning('Please enter your API key!', icon='⚠')
|
| 62 |
+
# text_input_visibility = True
|
| 63 |
+
# else:
|
| 64 |
+
# text_input_visibility = False
|
| 65 |
+
text_input_visibility = False
|
| 66 |
|
| 67 |
|
| 68 |
if "messages" not in st.session_state:
|