Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,8 +78,16 @@ def json_to_excel(output_json):
|
|
78 |
temp_file = NamedTemporaryFile(delete=False, suffix=".xlsx")
|
79 |
df.to_excel(temp_file.name, index=False)
|
80 |
return temp_file.name
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
# Create a single row for the HTML and Image
|
85 |
with gr.Row():
|
|
|
78 |
temp_file = NamedTemporaryFile(delete=False, suffix=".xlsx")
|
79 |
df.to_excel(temp_file.name, index=False)
|
80 |
return temp_file.name
|
81 |
+
# Define a colorful theme
|
82 |
+
colorful_theme = gr.themes.Default(
|
83 |
+
primary_hue="cyan", # Set a bright cyan as primary color
|
84 |
+
secondary_hue="magenta", # Set a bright magenta as secondary color
|
85 |
+
neutral_hue="yellow", # Optionally set a neutral color
|
86 |
+
accent_hue="lime" # Accent color for highlights and buttons
|
87 |
+
)
|
88 |
+
#with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green", secondary_hue="green")) as QUIZBOT:
|
89 |
+
with gr.Blocks(title="Quiz Maker", theme=colorful_theme) as QUIZBOT:
|
90 |
+
|
91 |
|
92 |
# Create a single row for the HTML and Image
|
93 |
with gr.Row():
|