Spaces:
Sleeping
Sleeping
theme change
Browse files
app.py
CHANGED
|
@@ -41,13 +41,6 @@ def respond(message, history):
|
|
| 41 |
if token is not None:
|
| 42 |
response += token
|
| 43 |
yield response
|
| 44 |
-
with gr.Blocks() as chatbot:
|
| 45 |
-
gr.ChatInterface(
|
| 46 |
-
fn=respond,
|
| 47 |
-
type="messages",
|
| 48 |
-
)
|
| 49 |
-
chatbot.launch()
|
| 50 |
-
|
| 51 |
theme = gr.themes.Monochrome(
|
| 52 |
primary_hue="orange",
|
| 53 |
secondary_hue="zinc",
|
|
@@ -60,5 +53,11 @@ theme = gr.themes.Monochrome(
|
|
| 60 |
body_background_fill_dark='*primary_50'
|
| 61 |
)
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
if token is not None:
|
| 42 |
response += token
|
| 43 |
yield response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
theme = gr.themes.Monochrome(
|
| 45 |
primary_hue="orange",
|
| 46 |
secondary_hue="zinc",
|
|
|
|
| 53 |
body_background_fill_dark='*primary_50'
|
| 54 |
)
|
| 55 |
|
| 56 |
+
|
| 57 |
+
with gr.Blocks(theme=theme) as chatbot:
|
| 58 |
+
gr.ChatInterface(
|
| 59 |
+
fn=respond,
|
| 60 |
+
type="messages",
|
| 61 |
+
)
|
| 62 |
+
chatbot.launch()
|
| 63 |
+
|