Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def respond(
|
|
| 15 |
temperature,
|
| 16 |
top_p,
|
| 17 |
):
|
| 18 |
-
system_message = "
|
| 19 |
messages = [{"role": "system", "content": system_message}]
|
| 20 |
|
| 21 |
for val in history:
|
|
@@ -46,7 +46,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
| 46 |
demo = gr.ChatInterface(
|
| 47 |
respond,
|
| 48 |
additional_inputs=[
|
| 49 |
-
gr.Textbox(value = "
|
| 50 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 51 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 52 |
gr.Slider(
|
|
@@ -59,11 +59,11 @@ demo = gr.ChatInterface(
|
|
| 59 |
],
|
| 60 |
|
| 61 |
examples = [
|
| 62 |
-
["
|
| 63 |
-
["Can you
|
| 64 |
-
["
|
| 65 |
],
|
| 66 |
-
title = '
|
| 67 |
)
|
| 68 |
|
| 69 |
|
|
|
|
| 15 |
temperature,
|
| 16 |
top_p,
|
| 17 |
):
|
| 18 |
+
system_message = "I'm your virtual shopping assistant, here to help you find the perfect items and answer any questions you may have. Whether you're looking for the latest fashion trends, tech gadgets, or home essentials, I'm here to make your shopping experience as smooth and enjoyable as possible."
|
| 19 |
messages = [{"role": "system", "content": system_message}]
|
| 20 |
|
| 21 |
for val in history:
|
|
|
|
| 46 |
demo = gr.ChatInterface(
|
| 47 |
respond,
|
| 48 |
additional_inputs=[
|
| 49 |
+
gr.Textbox(value = "I'm your virtual shopping assistant, here to help you find the perfect items and answer any questions you may have. Whether you're looking for the latest fashion trends, tech gadgets, or home essentials, I'm here to make your shopping experience as smooth and enjoyable as possible.", label="System message"),
|
| 50 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 51 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 52 |
gr.Slider(
|
|
|
|
| 59 |
],
|
| 60 |
|
| 61 |
examples = [
|
| 62 |
+
["Can you compare the features of the iPhone 14 and the Samsung Galaxy S23?"],
|
| 63 |
+
["I'm looking for a birthday gift for my mom. Can you suggest something special under $100?"],
|
| 64 |
+
["I need help setting up my new smart TV. Can you provide setup instructions or support?"]
|
| 65 |
],
|
| 66 |
+
title = 'Virtual ShopMate🛍️'
|
| 67 |
)
|
| 68 |
|
| 69 |
|