UI improvements
Browse files
app.py
CHANGED
@@ -52,8 +52,16 @@ def run_edits(code):
|
|
52 |
|
53 |
|
54 |
# User Interface Part
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
-
|
|
|
57 |
|
58 |
|
59 |
def render_instruction(mtd):
|
@@ -86,13 +94,14 @@ def render_instruction(mtd):
|
|
86 |
)
|
87 |
|
88 |
description = '''
|
89 |
-
<h1 style="text-align: center;
|
90 |
<br />
|
91 |
-
<span style='
|
92 |
User can select any of the evaluating strategies from the available ones <u>PAL</u>, <u>TA</u> and <u>MathPrompter</u> following with asking the query in English. The model generated code with respect to the selected strategy will be executed in the server and result is displayed.
|
93 |
In addition, the space enables users to edit the generated code and re-run it, providing a high degree of flexibility and customization in the solution process.</span>
|
94 |
'''
|
95 |
|
|
|
96 |
with demo:
|
97 |
gr.Markdown(description, interactive=False)
|
98 |
access_token = gr.Textbox(type="password", label="Hugging Face Access Token")
|
|
|
52 |
|
53 |
|
54 |
# User Interface Part
|
55 |
+
theme = gr.themes.Monochrome(
|
56 |
+
primary_hue="indigo",
|
57 |
+
secondary_hue="blue",
|
58 |
+
neutral_hue="slate",
|
59 |
+
radius_size=gr.themes.sizes.radius_sm,
|
60 |
+
font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
|
61 |
+
)
|
62 |
|
63 |
+
|
64 |
+
demo = gr.Blocks(title="Reasoning with StarCoder 💫", theme=theme)
|
65 |
|
66 |
|
67 |
def render_instruction(mtd):
|
|
|
94 |
)
|
95 |
|
96 |
description = '''
|
97 |
+
<h1 style="text-align: center; font-size: 40px;"><strong>Reasoning with <span style='color: #ff75b3;'> StarCoder 💫</span></strong></h1>
|
98 |
<br />
|
99 |
+
<span style='font-size: 18px;'>This space is a playground for allowing users to interact with <a href="https://huggingface.co/bigcode/large-model" style="color: #ff75b3;">StarCoder</a> and assessing its reasoning capabilities.
|
100 |
User can select any of the evaluating strategies from the available ones <u>PAL</u>, <u>TA</u> and <u>MathPrompter</u> following with asking the query in English. The model generated code with respect to the selected strategy will be executed in the server and result is displayed.
|
101 |
In addition, the space enables users to edit the generated code and re-run it, providing a high degree of flexibility and customization in the solution process.</span>
|
102 |
'''
|
103 |
|
104 |
+
|
105 |
with demo:
|
106 |
gr.Markdown(description, interactive=False)
|
107 |
access_token = gr.Textbox(type="password", label="Hugging Face Access Token")
|