Jonny001 commited on
Commit
2686b39
·
verified ·
1 Parent(s): 83b2200

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -12,6 +12,10 @@ def generate_images(text):
12
  result_image3 = model3(text)
13
 
14
 
 
 
 
 
15
  if isinstance(result_image1, tuple):
16
  result_image1 = result_image1[0]
17
  if isinstance(result_image2, tuple):
@@ -33,8 +37,8 @@ interface = gr.Interface(
33
  gr.Image(label="Model 2 Output"),
34
  gr.Image(label="Model 3 Output")
35
  ],
 
36
  description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
37
  )
38
 
39
-
40
  interface.launch()
 
12
  result_image3 = model3(text)
13
 
14
 
15
+ print(f"Result from model1: {type(result_image1)} - {result_image1}")
16
+ print(f"Result from model2: {type(result_image2)} - {result_image2}")
17
+ print(f"Result from model3: {type(result_image3)} - {result_image3}")
18
+
19
  if isinstance(result_image1, tuple):
20
  result_image1 = result_image1[0]
21
  if isinstance(result_image2, tuple):
 
37
  gr.Image(label="Model 2 Output"),
38
  gr.Image(label="Model 3 Output")
39
  ],
40
+ theme="huggingface",
41
  description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
42
  )
43
 
 
44
  interface.launch()