Spaces:
Running
on
Zero
Running
on
Zero
MarcdeFalco
commited on
Commit
•
43b206a
1
Parent(s):
9f6c4de
Fix
Browse files
app.py
CHANGED
@@ -78,38 +78,6 @@ css = """
|
|
78 |
}
|
79 |
"""
|
80 |
|
81 |
-
with gr.Blocks(css=css) as demo:
|
82 |
-
gr.HTML("<h1><center>Mathstral Test</center><h1>")
|
83 |
-
gr.HTML("<h3><center>Dans cette démo, vous pouvez poser des questions mathématiques et scientifiques à Mathstral. 🧮</center><h3>")
|
84 |
-
gr.ChatInterface(
|
85 |
-
generate,
|
86 |
-
additional_inputs=additional_inputs,
|
87 |
-
theme = gr.themes.Soft(),
|
88 |
-
cache_examples=False,
|
89 |
-
examples=[ [l.strip()] for l in open("exercices.md").readlines()],
|
90 |
-
chatbot = gr.Chatbot(
|
91 |
-
latex_delimiters=[
|
92 |
-
{"left" : "$$", "right": "$$", "display": True },
|
93 |
-
{"left" : "\\[", "right": "\\]", "display": True },
|
94 |
-
{"left" : "\\(", "right": "\\)", "display": False },
|
95 |
-
{"left": "$", "right": "$", "display": False }
|
96 |
-
]
|
97 |
-
)
|
98 |
-
)
|
99 |
-
|
100 |
-
demo.queue(max_size=100).launch(debug=True)
|
101 |
-
: raisonnement mathématiques et scientifique"
|
102 |
-
),
|
103 |
-
]
|
104 |
-
|
105 |
-
css = """
|
106 |
-
#mkd {
|
107 |
-
height: 500px;
|
108 |
-
overflow: auto;
|
109 |
-
border: 1px solid #ccc;
|
110 |
-
}
|
111 |
-
"""
|
112 |
-
|
113 |
with gr.Blocks(css=css) as demo:
|
114 |
gr.HTML("<h1><center>Mathstral Test</center><h1>")
|
115 |
gr.HTML("<h3><center>Dans cette démo, vous pouvez poser des questions mathématiques et scientifiques à Mathstral. 🧮</center><h3>")
|
|
|
78 |
}
|
79 |
"""
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
with gr.Blocks(css=css) as demo:
|
82 |
gr.HTML("<h1><center>Mathstral Test</center><h1>")
|
83 |
gr.HTML("<h3><center>Dans cette démo, vous pouvez poser des questions mathématiques et scientifiques à Mathstral. 🧮</center><h3>")
|