Update app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,6 @@ theme = gr.themes.Soft(
|
|
| 9 |
secondary_hue="zinc",
|
| 10 |
neutral_hue="pink"
|
| 11 |
)
|
| 12 |
-
#).set(
|
| 13 |
-
# link_text_color='*secondary_700',
|
| 14 |
-
# background_fill_primary = 'primary_600'
|
| 15 |
-
#)
|
| 16 |
|
| 17 |
custom_css = """
|
| 18 |
:root { /* This applies to the light mode */
|
|
@@ -81,32 +77,19 @@ def respond(message,history):
|
|
| 81 |
messages,
|
| 82 |
max_tokens = 500,
|
| 83 |
stream=True,
|
| 84 |
-
#temperature = .2
|
| 85 |
top_p = .2
|
| 86 |
):
|
| 87 |
token = message.choices[0].delta.content
|
| 88 |
response += token
|
| 89 |
-
# print(response)
|
| 90 |
yield response
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
#theme = gr.themes.Ocean(
|
| 94 |
-
# primary_hue="pink",
|
| 95 |
-
# secondary_hue="pink",
|
| 96 |
-
# neutral_hue="fuchsia"
|
| 97 |
-
# )
|
| 98 |
-
|
| 99 |
def display_image():
|
| 100 |
return "Screenshot 2025-06-12 at 10.53.59 AM.png"
|
| 101 |
|
| 102 |
|
| 103 |
with gr.Blocks (theme = theme) as chatbot:
|
| 104 |
-
# chatbot = gr.Chatbot()
|
| 105 |
gr.Image(display_image())
|
| 106 |
-
gr.ChatInterface(respond, type = "messages",
|
| 107 |
-
#primary_hue="pink",
|
| 108 |
-
#secondary_hue="pink",
|
| 109 |
-
#neutral_hue="fuchsia"),
|
| 110 |
title = "Hi, I'm BloomBot! 🌸",
|
| 111 |
textbox= gr.Textbox(placeholder="Share Your Age and Ask Me Anything!"),
|
| 112 |
description = "This tool is here to listen and provide information on female health topics, and all discussions will be kept confidential. ❤️🩹",
|
|
|
|
| 9 |
secondary_hue="zinc",
|
| 10 |
neutral_hue="pink"
|
| 11 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
custom_css = """
|
| 14 |
:root { /* This applies to the light mode */
|
|
|
|
| 77 |
messages,
|
| 78 |
max_tokens = 500,
|
| 79 |
stream=True,
|
|
|
|
| 80 |
top_p = .2
|
| 81 |
):
|
| 82 |
token = message.choices[0].delta.content
|
| 83 |
response += token
|
|
|
|
| 84 |
yield response
|
| 85 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
def display_image():
|
| 87 |
return "Screenshot 2025-06-12 at 10.53.59 AM.png"
|
| 88 |
|
| 89 |
|
| 90 |
with gr.Blocks (theme = theme) as chatbot:
|
|
|
|
| 91 |
gr.Image(display_image())
|
| 92 |
+
gr.ChatInterface(respond, type = "messages",
|
|
|
|
|
|
|
|
|
|
| 93 |
title = "Hi, I'm BloomBot! 🌸",
|
| 94 |
textbox= gr.Textbox(placeholder="Share Your Age and Ask Me Anything!"),
|
| 95 |
description = "This tool is here to listen and provide information on female health topics, and all discussions will be kept confidential. ❤️🩹",
|