Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -302,7 +302,7 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
|
|
302 |
chatbot_response = result[0]['generated_text']
|
303 |
print(chatbot_response)
|
304 |
print("anzahl tokens gesamt antwort:------------------")
|
305 |
-
print (len(
|
306 |
except Exception as e:
|
307 |
raise gr.Error(e)
|
308 |
|
|
|
302 |
chatbot_response = result[0]['generated_text']
|
303 |
print(chatbot_response)
|
304 |
print("anzahl tokens gesamt antwort:------------------")
|
305 |
+
print (len(chatbot_response.split()))
|
306 |
except Exception as e:
|
307 |
raise gr.Error(e)
|
308 |
|