Spaces:
Runtime error
Runtime error
button
Browse files
app.py
CHANGED
|
@@ -137,11 +137,13 @@ def respond(message,history):
|
|
| 137 |
return response['choices'][0]['message']['content'].strip()
|
| 138 |
|
| 139 |
with gr.Blocks(theme= theme) as chatbot:
|
| 140 |
-
with gr.Row(scale =
|
| 141 |
gr.Image("Capstone_Banner.png")
|
| 142 |
with gr.Row():
|
| 143 |
with gr.Column(scale= 1):
|
| 144 |
gr.Image("Aloe_the_Turtle.png")
|
|
|
|
|
|
|
| 145 |
with gr.Column(scale= 3):
|
| 146 |
gr.ChatInterface(
|
| 147 |
respond,
|
|
@@ -152,7 +154,4 @@ with gr.Blocks(theme= theme) as chatbot:
|
|
| 152 |
examples= ["What ingredients should I use to clear my Acne?", "How do I know if a mole needs to be checked for Skin Cancer?", "How do I tell the difference between eczema and psoriasis?"])
|
| 153 |
#defining my chatbot so user can interact, see their conversation and send new messages
|
| 154 |
|
| 155 |
-
#Button Code
|
| 156 |
-
open_google = gr.Button(value= "AI Testing Moles for Skin Cancer", link= "https://www.youtube.com/")
|
| 157 |
-
|
| 158 |
chatbot.launch()
|
|
|
|
| 137 |
return response['choices'][0]['message']['content'].strip()
|
| 138 |
|
| 139 |
with gr.Blocks(theme= theme) as chatbot:
|
| 140 |
+
with gr.Row(scale = 1):
|
| 141 |
gr.Image("Capstone_Banner.png")
|
| 142 |
with gr.Row():
|
| 143 |
with gr.Column(scale= 1):
|
| 144 |
gr.Image("Aloe_the_Turtle.png")
|
| 145 |
+
with gr.row(sacle= 1):
|
| 146 |
+
gr.Button(value= "AI Testing Moles for Skin Cancer", link= "https://www.youtube.com/")
|
| 147 |
with gr.Column(scale= 3):
|
| 148 |
gr.ChatInterface(
|
| 149 |
respond,
|
|
|
|
| 154 |
examples= ["What ingredients should I use to clear my Acne?", "How do I know if a mole needs to be checked for Skin Cancer?", "How do I tell the difference between eczema and psoriasis?"])
|
| 155 |
#defining my chatbot so user can interact, see their conversation and send new messages
|
| 156 |
|
|
|
|
|
|
|
|
|
|
| 157 |
chatbot.launch()
|