Spaces:
Sleeping
Sleeping
mmccanse
commited on
Commit
·
7c7af18
1
Parent(s):
75ef897
update font colors and button colors
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ from functions_mm import handle_query, transcribe_audio_original, submit_questio
|
|
51 |
import gradio as gr
|
52 |
|
53 |
theme = gr.themes.Soft(
|
54 |
-
secondary_hue="
|
55 |
neutral_hue="slate",
|
56 |
font=[gr.themes.GoogleFont('Source Sans Pro'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
57 |
).set(
|
@@ -111,10 +111,13 @@ theme = gr.themes.Soft(
|
|
111 |
button_shadow_hover='none',
|
112 |
|
113 |
#change button color here
|
114 |
-
button_primary_background_fill='*
|
|
|
115 |
button_primary_background_fill_hover='*button_primary_background_fill',
|
116 |
button_primary_background_fill_hover_dark='*button_primary_background_fill',
|
117 |
-
|
|
|
|
|
118 |
|
119 |
#change button color here
|
120 |
button_secondary_background_fill='*secondary_500',
|
@@ -153,7 +156,7 @@ with gr.Blocks(theme=theme) as app2:
|
|
153 |
# gr.Markdown("## Step 2: Transcribe audio into text")
|
154 |
transcribe_button = gr.Button("Transcribe audio", variant="primary")
|
155 |
# gr.Markdown("## Step 3: Transcribed audio appears here. Or, type your question here.")
|
156 |
-
query_text = gr.Textbox(placeholder="
|
157 |
# gr.Markdown("## Submit your question")
|
158 |
submit_button = gr.Button("Submit your question", variant="primary")
|
159 |
|
|
|
51 |
import gradio as gr
|
52 |
|
53 |
theme = gr.themes.Soft(
|
54 |
+
secondary_hue="teal",
|
55 |
neutral_hue="slate",
|
56 |
font=[gr.themes.GoogleFont('Source Sans Pro'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
57 |
).set(
|
|
|
111 |
button_shadow_hover='none',
|
112 |
|
113 |
#change button color here
|
114 |
+
button_primary_background_fill='linear-gradient(45deg, *primary_500, *secondary_200)',
|
115 |
+
# *primary_300',
|
116 |
button_primary_background_fill_hover='*button_primary_background_fill',
|
117 |
button_primary_background_fill_hover_dark='*button_primary_background_fill',
|
118 |
+
|
119 |
+
#change button text color here
|
120 |
+
button_primary_text_color='*neutral_900',
|
121 |
|
122 |
#change button color here
|
123 |
button_secondary_background_fill='*secondary_500',
|
|
|
156 |
# gr.Markdown("## Step 2: Transcribe audio into text")
|
157 |
transcribe_button = gr.Button("Transcribe audio", variant="primary")
|
158 |
# gr.Markdown("## Step 3: Transcribed audio appears here. Or, type your question here.")
|
159 |
+
query_text = gr.Textbox(placeholder="Transcribed audio appears here. Or, type a question here.")
|
160 |
# gr.Markdown("## Submit your question")
|
161 |
submit_button = gr.Button("Submit your question", variant="primary")
|
162 |
|