Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ from io import BytesIO
|
|
24 |
import spaces
|
25 |
import gradio as gr
|
26 |
import torch
|
|
|
27 |
from app_modules.gradio_utils import (
|
28 |
cancel_outputing,
|
29 |
delete_last_conversation,
|
@@ -228,6 +229,7 @@ def predict(
|
|
228 |
generator: A generator that yields the chatbot outputs, history, and status.
|
229 |
"""
|
230 |
print("running the prediction function")
|
|
|
231 |
try:
|
232 |
tokenizer, vl_gpt, vl_chat_processor = models[model_select_dropdown]
|
233 |
|
|
|
24 |
import spaces
|
25 |
import gradio as gr
|
26 |
import torch
|
27 |
+
import os
|
28 |
from app_modules.gradio_utils import (
|
29 |
cancel_outputing,
|
30 |
delete_last_conversation,
|
|
|
229 |
generator: A generator that yields the chatbot outputs, history, and status.
|
230 |
"""
|
231 |
print("running the prediction function")
|
232 |
+
os.system('nvidia-smi')
|
233 |
try:
|
234 |
tokenizer, vl_gpt, vl_chat_processor = models[model_select_dropdown]
|
235 |
|