yizhangliu commited on
Commit
7942d31
1 Parent(s): 98c7c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -292,10 +292,12 @@ import gradio as gr
292
  '''
293
 
294
  def greet(image, name, is_morning, temperature):
 
 
295
  salutation = "Good morning" if is_morning else "Good evening"
296
  greeting = f"{salutation} {name}. It is {temperature} degrees today"
297
  celsius = (temperature - 32) * 5 / 9
298
- return iamge, greeting, round(celsius, 2)
299
 
300
  demo = gr.Interface(
301
  fn=greet,
 
292
  '''
293
 
294
  def greet(image, name, is_morning, temperature):
295
+ target_size = (image.shape[0], image.shape[1])
296
+ print(f'liuyz_1_', target_size)
297
  salutation = "Good morning" if is_morning else "Good evening"
298
  greeting = f"{salutation} {name}. It is {temperature} degrees today"
299
  celsius = (temperature - 32) * 5 / 9
300
+ return image, greeting, round(celsius, 2)
301
 
302
  demo = gr.Interface(
303
  fn=greet,