Spaces:
Sleeping
Sleeping
Soroush commited on
Commit ·
92f0098
1
Parent(s): 5ced3ee
custom theme
Browse files
app.py
CHANGED
|
@@ -932,10 +932,15 @@ def save_graph_as_png() -> bytes:
|
|
| 932 |
print(f"Error saving graph: {e}")
|
| 933 |
return None
|
| 934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 935 |
def create_gradio_interface():
|
| 936 |
"""Create the enhanced Gradio interface"""
|
| 937 |
|
| 938 |
-
with gr.Blocks(title="Advanced Social Network Simulation Generator", theme=
|
| 939 |
gr.Markdown("# 🌐 AI-Powered Advanced Social Network Simulation Generator")
|
| 940 |
gr.Markdown(" * [Presentation Video](https://www.youtube.com/watch?v=8KRiPwacJnk)")
|
| 941 |
gr.Markdown(" SNA (Social Network Analysis) By creating Agent-based Models (ABM) with AI agents, " \
|
|
|
|
| 932 |
print(f"Error saving graph: {e}")
|
| 933 |
return None
|
| 934 |
|
| 935 |
+
from gradio.themes.base import Base
|
| 936 |
+
|
| 937 |
+
# Create a custom light theme
|
| 938 |
+
custom_theme = gr.themes.Soft() # Could we enforce a light theme?
|
| 939 |
+
|
| 940 |
def create_gradio_interface():
|
| 941 |
"""Create the enhanced Gradio interface"""
|
| 942 |
|
| 943 |
+
with gr.Blocks(title="Advanced Social Network Simulation Generator", theme=custom_theme) as demo:
|
| 944 |
gr.Markdown("# 🌐 AI-Powered Advanced Social Network Simulation Generator")
|
| 945 |
gr.Markdown(" * [Presentation Video](https://www.youtube.com/watch?v=8KRiPwacJnk)")
|
| 946 |
gr.Markdown(" SNA (Social Network Analysis) By creating Agent-based Models (ABM) with AI agents, " \
|