Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,10 @@ def predict(user_input):
|
|
49 |
# Decode the response
|
50 |
response = tokenizer.decode(response_id[0], skip_special_tokens=True)
|
51 |
save_question(question = user_input,answer=response)
|
|
|
|
|
|
|
|
|
52 |
return response
|
53 |
|
54 |
# Gradio interface
|
|
|
49 |
# Decode the response
|
50 |
response = tokenizer.decode(response_id[0], skip_special_tokens=True)
|
51 |
save_question(question = user_input,answer=response)
|
52 |
+
print("Q:",user_input)
|
53 |
+
print("A:",response)
|
54 |
+
print("T:",datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
55 |
+
print()
|
56 |
return response
|
57 |
|
58 |
# Gradio interface
|