Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ except:
|
|
| 25 |
pass
|
| 26 |
|
| 27 |
# Get the token from environment variables
|
| 28 |
-
HF_TOKEN = os.
|
| 29 |
|
| 30 |
|
| 31 |
def query_huggingface_model(selected_model: dict, input_data, input_type="text",max_tokens=512,task="text-classification",temperature=0.7, top_p=0.9 ):
|
|
@@ -397,10 +397,10 @@ if st.session_state.framework == "gen":
|
|
| 397 |
background-repeat: no-repeat;
|
| 398 |
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
|
| 399 |
width:250px;
|
| 400 |
-
margin-left:
|
| 401 |
border-radius: 30px;
|
| 402 |
height:50px !important;
|
| 403 |
-
margin-top:
|
| 404 |
border-right:2px solid #4794ff;
|
| 405 |
border-left:2px solid #4794ff;
|
| 406 |
|
|
@@ -569,13 +569,13 @@ if st.session_state.framework == "gen":
|
|
| 569 |
}}
|
| 570 |
|
| 571 |
[class*="st-key-form-content"] {{
|
| 572 |
-
margin-top:-
|
| 573 |
height:420px;
|
| 574 |
border-radius:35px;
|
| 575 |
|
| 576 |
}}
|
| 577 |
[class*="st-key-form-content1"] {{
|
| 578 |
-
margin-top:
|
| 579 |
height:420px;
|
| 580 |
border-radius:35px;
|
| 581 |
margin-bottom:15px;
|
|
|
|
| 25 |
pass
|
| 26 |
|
| 27 |
# Get the token from environment variables
|
| 28 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 29 |
|
| 30 |
|
| 31 |
def query_huggingface_model(selected_model: dict, input_data, input_type="text",max_tokens=512,task="text-classification",temperature=0.7, top_p=0.9 ):
|
|
|
|
| 397 |
background-repeat: no-repeat;
|
| 398 |
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
|
| 399 |
width:250px;
|
| 400 |
+
margin-left:360px;
|
| 401 |
border-radius: 30px;
|
| 402 |
height:50px !important;
|
| 403 |
+
margin-top:50px;
|
| 404 |
border-right:2px solid #4794ff;
|
| 405 |
border-left:2px solid #4794ff;
|
| 406 |
|
|
|
|
| 569 |
}}
|
| 570 |
|
| 571 |
[class*="st-key-form-content"] {{
|
| 572 |
+
margin-top:-60px;
|
| 573 |
height:420px;
|
| 574 |
border-radius:35px;
|
| 575 |
|
| 576 |
}}
|
| 577 |
[class*="st-key-form-content1"] {{
|
| 578 |
+
margin-top:10px;
|
| 579 |
height:420px;
|
| 580 |
border-radius:35px;
|
| 581 |
margin-bottom:15px;
|