Spaces:
Sleeping
Sleeping
run 4
Browse files
app.py
CHANGED
|
@@ -93,9 +93,25 @@ with gr.Blocks() as demo:
|
|
| 93 |
gr.Markdown(about_text)
|
| 94 |
|
| 95 |
with gr.Column(scale=2):
|
| 96 |
-
gr.ChatInterface(
|
| 97 |
|
| 98 |
demo.launch()
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 101 |
chatbot.launch()
|
|
|
|
| 93 |
gr.Markdown(about_text)
|
| 94 |
|
| 95 |
with gr.Column(scale=2):
|
| 96 |
+
gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 97 |
|
| 98 |
demo.launch()
|
| 99 |
|
| 100 |
+
# Customize colors, sizing and fonts
|
| 101 |
+
custom_theme = gr.themes.Soft(
|
| 102 |
+
primary_hue="pink",
|
| 103 |
+
secondary_hue="fuchsia",
|
| 104 |
+
neutral_hue="gray",
|
| 105 |
+
spacing_size="lg",
|
| 106 |
+
radius_size="lg",
|
| 107 |
+
text_size="lg",
|
| 108 |
+
font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
|
| 109 |
+
font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
|
| 110 |
+
)
|
| 111 |
+
|
| 112 |
+
chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
|
| 113 |
+
|
| 114 |
+
chatbot.launch(ssr_mode=False)
|
| 115 |
+
|
| 116 |
chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 117 |
chatbot.launch()
|