Spaces:
Runtime error
Runtime error
updte
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ model = hub.Module(name='ernie_vilg')
|
|
13 |
def get_ernie_vilg(text_prompts, style):
|
14 |
style = style.split('-')[0]
|
15 |
results = model.generate_image(text_prompts=text_prompts, style=style, visualization=False)
|
16 |
-
for CPU monitoring
|
17 |
# Testing the psutil library for both CPU and RAM performance details
|
18 |
print(f"ERNIE CPU percent is: {psutil.cpu_percent()}")
|
19 |
print(f"ERNIE virtual memory is : {psutil.virtual_memory().percent}")
|
|
|
13 |
def get_ernie_vilg(text_prompts, style):
|
14 |
style = style.split('-')[0]
|
15 |
results = model.generate_image(text_prompts=text_prompts, style=style, visualization=False)
|
16 |
+
#for CPU monitoring
|
17 |
# Testing the psutil library for both CPU and RAM performance details
|
18 |
print(f"ERNIE CPU percent is: {psutil.cpu_percent()}")
|
19 |
print(f"ERNIE virtual memory is : {psutil.virtual_memory().percent}")
|