Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -146,12 +146,11 @@ with gr.Blocks() as demo:
|
|
146 |
data = {
|
147 |
"model_type": "breeze-7b-instruct-v01",
|
148 |
"prompt": str(message),
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
# }
|
155 |
}
|
156 |
|
157 |
start_time = time.time()
|
|
|
146 |
data = {
|
147 |
"model_type": "breeze-7b-instruct-v01",
|
148 |
"prompt": str(message),
|
149 |
+
"parameters": {
|
150 |
+
"temperature": str(message),
|
151 |
+
"top_p": float(top_p),
|
152 |
+
"max_new_tokens": int(max_new_tokens),
|
153 |
+
}
|
|
|
154 |
}
|
155 |
|
156 |
start_time = time.time()
|