Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ DEFAULTS = {
|
|
| 34 |
"n_layers": 12,
|
| 35 |
"dropout": 0.1,
|
| 36 |
"max_length": 1024,
|
| 37 |
-
"k_sampling": 200, #
|
| 38 |
"LEARNING_RATE": 1e-6,
|
| 39 |
}
|
| 40 |
|
|
@@ -535,8 +535,8 @@ with gr.Blocks(title="OkemoLLM") as demo:
|
|
| 535 |
)
|
| 536 |
|
| 537 |
# Register the simple logging function for the Bad Feedback modal (since it doesn't always contain a desired response)
|
|
|
|
| 538 |
demo.api_add_function(simple_bad_feedback_log, "feedback_bad")
|
| 539 |
-
# NOTE: The manual button above registers /feedback_train implicitly.
|
| 540 |
|
| 541 |
|
| 542 |
if __name__ == "__main__":
|
|
|
|
| 34 |
"n_layers": 12,
|
| 35 |
"dropout": 0.1,
|
| 36 |
"max_length": 1024,
|
| 37 |
+
"k_sampling": 200, # Using 200 for diversity
|
| 38 |
"LEARNING_RATE": 1e-6,
|
| 39 |
}
|
| 40 |
|
|
|
|
| 535 |
)
|
| 536 |
|
| 537 |
# Register the simple logging function for the Bad Feedback modal (since it doesn't always contain a desired response)
|
| 538 |
+
# This addresses the Attribute Error by using the appropriate Gradio method.
|
| 539 |
demo.api_add_function(simple_bad_feedback_log, "feedback_bad")
|
|
|
|
| 540 |
|
| 541 |
|
| 542 |
if __name__ == "__main__":
|