Spaces:
Sleeping
Sleeping
please work
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import random
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
from gradio.themes.utils import colors
|
| 5 |
|
| 6 |
-
gr.themes.builder(
|
| 7 |
primary_hue = colors.indigo,
|
| 8 |
secondary_hue = colors.rose,
|
| 9 |
neutral_hue = colors.gray
|
|
@@ -37,6 +37,6 @@ def random_message(message, history):
|
|
| 37 |
random_choices = random.choice(choices)
|
| 38 |
return random_choices
|
| 39 |
|
| 40 |
-
chatbot = gr.ChatInterface(respond, type = "messages")
|
| 41 |
|
| 42 |
chatbot.launch(debug=True)
|
|
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
from gradio.themes.utils import colors
|
| 5 |
|
| 6 |
+
theme = gr.themes.builder(
|
| 7 |
primary_hue = colors.indigo,
|
| 8 |
secondary_hue = colors.rose,
|
| 9 |
neutral_hue = colors.gray
|
|
|
|
| 37 |
random_choices = random.choice(choices)
|
| 38 |
return random_choices
|
| 39 |
|
| 40 |
+
chatbot = gr.ChatInterface(respond, type = "messages", theme=theme)
|
| 41 |
|
| 42 |
chatbot.launch(debug=True)
|