Update BrainBot.py
Browse files- BrainBot.py +0 -8
BrainBot.py
CHANGED
|
@@ -3,8 +3,6 @@ import requests
|
|
| 3 |
import tempfile
|
| 4 |
import validators
|
| 5 |
import os
|
| 6 |
-
# from dotenv
|
| 7 |
-
# from huggingface_hub import login
|
| 8 |
|
| 9 |
# Custom CSS
|
| 10 |
with open('styles.css') as f:
|
|
@@ -12,12 +10,6 @@ with open('styles.css') as f:
|
|
| 12 |
|
| 13 |
st.markdown(f'<style>{css}</style>', unsafe_allow_html=True)
|
| 14 |
|
| 15 |
-
## LOGIN TO HF
|
| 16 |
-
## -------------------------------------------------------------------------------------------
|
| 17 |
-
# Login to Hugging Face with Access Token
|
| 18 |
-
# access_token =
|
| 19 |
-
# login(token = access_token)
|
| 20 |
-
|
| 21 |
## FUNCTIONS
|
| 22 |
## -------------------------------------------------------------------------------------------
|
| 23 |
# Function to save the uploaded file as a temporary file and return its path.
|
|
|
|
| 3 |
import tempfile
|
| 4 |
import validators
|
| 5 |
import os
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Custom CSS
|
| 8 |
with open('styles.css') as f:
|
|
|
|
| 10 |
|
| 11 |
st.markdown(f'<style>{css}</style>', unsafe_allow_html=True)
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## FUNCTIONS
|
| 14 |
## -------------------------------------------------------------------------------------------
|
| 15 |
# Function to save the uploaded file as a temporary file and return its path.
|