Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,35 @@ api_key=os.environ.get('qwen_API_KEY')
|
|
6 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
7 |
"""
|
8 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct",token=api_key)
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
def respond(
|
12 |
message,
|
|
|
6 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
7 |
"""
|
8 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct",token=api_key)
|
9 |
+
latex_delimiters = [{
|
10 |
+
"left": "\\(",
|
11 |
+
"right": "\\)",
|
12 |
+
"display": True
|
13 |
+
}, {
|
14 |
+
"left": "\\begin\{equation\}",
|
15 |
+
"right": "\\end\{equation\}",
|
16 |
+
"display": True
|
17 |
+
}, {
|
18 |
+
"left": "\\begin\{align\}",
|
19 |
+
"right": "\\end\{align\}",
|
20 |
+
"display": True
|
21 |
+
}, {
|
22 |
+
"left": "\\begin\{alignat\}",
|
23 |
+
"right": "\\end\{alignat\}",
|
24 |
+
"display": True
|
25 |
+
}, {
|
26 |
+
"left": "\\begin\{gather\}",
|
27 |
+
"right": "\\end\{gather\}",
|
28 |
+
"display": True
|
29 |
+
}, {
|
30 |
+
"left": "\\begin\{CD\}",
|
31 |
+
"right": "\\end\{CD\}",
|
32 |
+
"display": True
|
33 |
+
}, {
|
34 |
+
"left": "\\[",
|
35 |
+
"right": "\\]",
|
36 |
+
"display": True
|
37 |
+
}]
|
38 |
|
39 |
def respond(
|
40 |
message,
|