Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,12 @@ MODEL_LIST = ["mistralai/mathstral-7B-v0.1"]
|
|
10 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
11 |
MODEL = os.environ.get("MODEL_ID")
|
12 |
|
13 |
-
TITLE = "<h1><center>MathΣtral - Your Math advisor</center></h1>"
|
14 |
-
|
15 |
PLACEHOLDER = """
|
16 |
<center>
|
17 |
<p>Hi! I'm MisMath. A Math advisor. My model is based on mathstral-7B-v0.1. Feel free to ask your questions</p>
|
18 |
<p>Mathstral 7B is a model specializing in mathematical and scientific tasks, based on Mistral 7B.</p>
|
19 |
<p>mathstral-7B-v0.1 is first Mathstral model</p>
|
20 |
-
<img src="
|
21 |
</center>
|
22 |
"""
|
23 |
|
@@ -28,11 +26,15 @@ CSS = """
|
|
28 |
background: black !important;
|
29 |
border-radius: 100vh !important;
|
30 |
}
|
31 |
-
|
32 |
text-align: center;
|
|
|
|
|
33 |
}
|
34 |
"""
|
35 |
|
|
|
|
|
36 |
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
37 |
|
38 |
quantization_config = BitsAndBytesConfig(
|
|
|
10 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
11 |
MODEL = os.environ.get("MODEL_ID")
|
12 |
|
|
|
|
|
13 |
PLACEHOLDER = """
|
14 |
<center>
|
15 |
<p>Hi! I'm MisMath. A Math advisor. My model is based on mathstral-7B-v0.1. Feel free to ask your questions</p>
|
16 |
<p>Mathstral 7B is a model specializing in mathematical and scientific tasks, based on Mistral 7B.</p>
|
17 |
<p>mathstral-7B-v0.1 is first Mathstral model</p>
|
18 |
+
<img src="/Mistral.jpeg" alt="MathStral Model" style="width:300px;height:200px;">
|
19 |
</center>
|
20 |
"""
|
21 |
|
|
|
26 |
background: black !important;
|
27 |
border-radius: 100vh !important;
|
28 |
}
|
29 |
+
h1 {
|
30 |
text-align: center;
|
31 |
+
font-size: 2em;
|
32 |
+
color: #333;
|
33 |
}
|
34 |
"""
|
35 |
|
36 |
+
TITLE = "<h1><center>MathΣtral - Your Math advisor</center></h1>"
|
37 |
+
|
38 |
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
39 |
|
40 |
quantization_config = BitsAndBytesConfig(
|