Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,12 +45,12 @@ def getProductDetails(history, image):
|
|
45 |
if not history:
|
46 |
history = [[{"role": "system", "content": "You are a helpful assistant."}], [{"role": "user", "content": "hello"}]]
|
47 |
generate_kwargs = dict(
|
48 |
-
temperature=
|
49 |
-
max_new_tokens=
|
50 |
-
top_p=
|
51 |
-
repetition_penalty=
|
52 |
do_sample=True,
|
53 |
-
seed=
|
54 |
)
|
55 |
system_prompt="you're a helpful e-commerce marketting assitant"
|
56 |
prompt="Write me a poem"
|
|
|
45 |
if not history:
|
46 |
history = [[{"role": "system", "content": "You are a helpful assistant."}], [{"role": "user", "content": "hello"}]]
|
47 |
generate_kwargs = dict(
|
48 |
+
temperature=0.67,
|
49 |
+
max_new_tokens=1024,
|
50 |
+
top_p=0.9,
|
51 |
+
repetition_penalty=1,
|
52 |
do_sample=True,
|
53 |
+
seed=rand_val,
|
54 |
)
|
55 |
system_prompt="you're a helpful e-commerce marketting assitant"
|
56 |
prompt="Write me a poem"
|