LuisV commited on
Commit
21f693b
·
1 Parent(s): d73f96d

fixing path typo

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -77,7 +77,8 @@ with gr.Blocks() as demo:
77
  label= "An artwork: ",
78
  type = "filepath",
79
  value=os.path.join(
80
- os.getcwd(),
 
81
  "1665_Girl_with_a_Pearl_Earring.jpg"
82
  )
83
  )
@@ -88,6 +89,8 @@ with gr.Blocks() as demo:
88
  value = AVAILABLE_LLMS[0]
89
  )
90
 
 
 
91
  gr_emotion = gr.Textbox(
92
  label = "Evoked emotion: ",
93
  )
@@ -102,9 +105,6 @@ with gr.Blocks() as demo:
102
  label = "Commentary on the artwork:",
103
  )
104
 
105
-
106
-
107
- btn = gr.Button(value="Submit your image!")
108
  btn.click(
109
  caption_artwork,
110
  inputs=[gr_image, gr_model],
 
77
  label= "An artwork: ",
78
  type = "filepath",
79
  value=os.path.join(
80
+ #os.getcwd(),
81
+ os.path.dirname(__file__),
82
  "1665_Girl_with_a_Pearl_Earring.jpg"
83
  )
84
  )
 
89
  value = AVAILABLE_LLMS[0]
90
  )
91
 
92
+ btn = gr.Button(value="Submit your image!")
93
+
94
  gr_emotion = gr.Textbox(
95
  label = "Evoked emotion: ",
96
  )
 
105
  label = "Commentary on the artwork:",
106
  )
107
 
 
 
 
108
  btn.click(
109
  caption_artwork,
110
  inputs=[gr_image, gr_model],