Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def save_interaction(user_input, chatbot_response, feedback=None):
|
|
38 |
"user_input": user_input,
|
39 |
"chatbot_response": chatbot_response,
|
40 |
"feedback": feedback,
|
41 |
-
"timestamp": "2025-02-25
|
42 |
}
|
43 |
if os.path.exists(INTERACTIONS_FILE):
|
44 |
with open(INTERACTIONS_FILE, "r") as file:
|
@@ -101,7 +101,6 @@ demo = gr.ChatInterface(
|
|
101 |
gr.Slider(minimum=1, maximum=250, value=128, step=1, label="Max new tokens"),
|
102 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.9, step=0.1, label="Temperature"),
|
103 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.99, step=0.01, label="Top-p (nucleus sampling)"),
|
104 |
-
gr.Radio(choices=["Good", "Bad"], label="Feedback", optional=True),
|
105 |
],
|
106 |
)
|
107 |
|
|
|
38 |
"user_input": user_input,
|
39 |
"chatbot_response": chatbot_response,
|
40 |
"feedback": feedback,
|
41 |
+
"timestamp": "2025-02-25 12:26:20"
|
42 |
}
|
43 |
if os.path.exists(INTERACTIONS_FILE):
|
44 |
with open(INTERACTIONS_FILE, "r") as file:
|
|
|
101 |
gr.Slider(minimum=1, maximum=250, value=128, step=1, label="Max new tokens"),
|
102 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.9, step=0.1, label="Temperature"),
|
103 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.99, step=0.01, label="Top-p (nucleus sampling)"),
|
|
|
104 |
],
|
105 |
)
|
106 |
|