Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,8 @@ def chat(message, history, temperature, top_p, top_k, max_tokens):
|
|
72 |
tokens_per_second = tokens / total_time if total_time > 0 else 0
|
73 |
|
74 |
timing_info = f"\n\nTime taken to first token: {first_token_time:.2f} seconds\nTokens per second: {tokens_per_second:.2f}"
|
75 |
-
|
|
|
76 |
|
77 |
|
78 |
demo = gr.ChatInterface(
|
|
|
72 |
tokens_per_second = tokens / total_time if total_time > 0 else 0
|
73 |
|
74 |
timing_info = f"\n\nTime taken to first token: {first_token_time:.2f} seconds\nTokens per second: {tokens_per_second:.2f}"
|
75 |
+
gr.Info(timing_info)
|
76 |
+
yield partial_text
|
77 |
|
78 |
|
79 |
demo = gr.ChatInterface(
|