Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,6 +45,8 @@ def ask_phi(image, question, max_length):
|
|
| 45 |
response += output
|
| 46 |
|
| 47 |
print(f"\nInference took {time.time() - start_time} seconds")
|
|
|
|
|
|
|
| 48 |
return response
|
| 49 |
|
| 50 |
# Gradio Interface
|
|
|
|
| 45 |
response += output
|
| 46 |
|
| 47 |
print(f"\nInference took {time.time() - start_time} seconds")
|
| 48 |
+
|
| 49 |
+
del generator
|
| 50 |
return response
|
| 51 |
|
| 52 |
# Gradio Interface
|