Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,8 +46,8 @@ def get_relevant_context(query, top_k=3):
|
|
| 46 |
|
| 47 |
custom_theme = gr.themes.Soft(
|
| 48 |
primary_hue="cyan", # lighter, fresher than teal
|
| 49 |
-
secondary_hue="
|
| 50 |
-
neutral_hue="
|
| 51 |
spacing_size="md", # slightly smaller for balanced white space
|
| 52 |
radius_size="md", # medium rounded corners for a modern look
|
| 53 |
text_size="md", # slightly smaller text for crispness
|
|
@@ -93,7 +93,7 @@ def respond(message, history):
|
|
| 93 |
response += token # Add it to the response
|
| 94 |
yield response # yield the response:
|
| 95 |
|
| 96 |
-
with gr.Blocks(theme=custom_theme) as
|
| 97 |
gr.Image(
|
| 98 |
value="Banner.png",
|
| 99 |
show_label=False,
|
|
@@ -110,7 +110,7 @@ with gr.Blocks(theme=custom_theme) as chatbot:
|
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
-
|
| 114 |
|
| 115 |
#build on your original chatbot from the previous lesson
|
| 116 |
#a basic chatbot from the previous lesson is below -- edit it to incorporate the changes described above
|
|
|
|
| 46 |
|
| 47 |
custom_theme = gr.themes.Soft(
|
| 48 |
primary_hue="cyan", # lighter, fresher than teal
|
| 49 |
+
secondary_hue="stone", # softer neutral than stone
|
| 50 |
+
neutral_hue="gray", # light neutral gray-blue tint
|
| 51 |
spacing_size="md", # slightly smaller for balanced white space
|
| 52 |
radius_size="md", # medium rounded corners for a modern look
|
| 53 |
text_size="md", # slightly smaller text for crispness
|
|
|
|
| 93 |
response += token # Add it to the response
|
| 94 |
yield response # yield the response:
|
| 95 |
|
| 96 |
+
with gr.Blocks(theme=custom_theme) as demo:
|
| 97 |
gr.Image(
|
| 98 |
value="Banner.png",
|
| 99 |
show_label=False,
|
|
|
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
+
demo.launch()
|
| 114 |
|
| 115 |
#build on your original chatbot from the previous lesson
|
| 116 |
#a basic chatbot from the previous lesson is below -- edit it to incorporate the changes described above
|