Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,13 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import random
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
|
@@ -32,6 +41,6 @@ def respond(message, history):
|
|
| 32 |
|
| 33 |
#return response ['choices'][0]['message']['content'].strip()
|
| 34 |
|
| 35 |
-
chatbot = gr.ChatInterface(respond, type = "messages"
|
| 36 |
|
| 37 |
chatbot.launch(debug=True)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
+
theme = gr.themes.Soft(
|
| 4 |
+
primary_hue="pink",
|
| 5 |
+
secondary_hue="pink",
|
| 6 |
+
neutral_hue="fuchsia",
|
| 7 |
+
).set(
|
| 8 |
+
link_text_color='*secondary_700'
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
import random
|
| 12 |
from huggingface_hub import InferenceClient
|
| 13 |
|
|
|
|
| 41 |
|
| 42 |
#return response ['choices'][0]['message']['content'].strip()
|
| 43 |
|
| 44 |
+
chatbot = gr.ChatInterface(respond, type = "messages") #theme = "shivi/calm_seafoam")
|
| 45 |
|
| 46 |
chatbot.launch(debug=True)
|