arad1367 commited on
Commit
cbee66d
1 Parent(s): 3bef2c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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="https://www.google.com/url?sa=i&url=http%3A%2F%2Fwww.xuexiaigc.com%2Fgptgpts%2FMistral%25E6%259C%2580%25E6%2596%25B0%25E5%25BC%2580%25E6%25BA%2590%25E6%2595%25B0%25E5%25AD%25A6%25E6%25A8%25A1%25E5%259E%258B-Mathstral%25EF%25BC%258C%25E8%2583%25BD%25E4%25B8%258D%25E8%2583%25BD%25E7%25AE%2597%25E5%25AF%25B9-9-11-%25E5%2592%258C-9-9%25E8%25B0%2581%25E5%25A4%25A7%25EF%25BC%259F%25EF%25BD%259CAI%2F&psig=AOvVaw0NtVK20NoIjAxGJ1RtkP1C&ust=1721987390072000&source=images&cd=vfe&opi=89978449&ved=0CBUQjRxqFwoTCIil0Yj1wYcDFQAAAAAdAAAAABAJ" alt="MathStral Model" style="width:300px;height:200px;">
21
  </center>
22
  """
23
 
@@ -28,11 +26,15 @@ CSS = """
28
  background: black !important;
29
  border-radius: 100vh !important;
30
  }
31
- h3 {
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(