Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,6 +52,9 @@ if submitted:
|
|
| 52 |
{"role": "user", "content": text}
|
| 53 |
]
|
| 54 |
|
|
|
|
|
|
|
|
|
|
| 55 |
# Create a new stream for each submission
|
| 56 |
stream = client.chat.completions.create(
|
| 57 |
model=selected_model,
|
|
|
|
| 52 |
{"role": "user", "content": text}
|
| 53 |
]
|
| 54 |
|
| 55 |
+
# Call the function to get the elapsed time
|
| 56 |
+
minutes, seconds, milliseconds = process_with_timing()
|
| 57 |
+
|
| 58 |
# Create a new stream for each submission
|
| 59 |
stream = client.chat.completions.create(
|
| 60 |
model=selected_model,
|