Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,11 +32,9 @@ def askme(symptoms, question):
|
|
32 |
outputs = model.generate(**inputs, max_new_tokens=200, use_cache=True)
|
33 |
response_text = tokenizer.batch_decode(outputs)[0].strip()
|
34 |
# Remove system messages and content
|
35 |
-
response_text = response_text.replace(sys_message, "").replace(content, "").strip()
|
36 |
# Extract only the assistant's response
|
37 |
-
|
38 |
-
|
39 |
-
return assistant_response
|
40 |
|
41 |
# Example usage
|
42 |
symptoms = '''\
|
|
|
32 |
outputs = model.generate(**inputs, max_new_tokens=200, use_cache=True)
|
33 |
response_text = tokenizer.batch_decode(outputs)[0].strip()
|
34 |
# Remove system messages and content
|
35 |
+
#response_text = response_text.replace(sys_message, "").replace(content, "").strip()
|
36 |
# Extract only the assistant's response
|
37 |
+
return response_text
|
|
|
|
|
38 |
|
39 |
# Example usage
|
40 |
symptoms = '''\
|