shogi880 commited on
Commit
ae46035
·
1 Parent(s): a914ec3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,10 +10,10 @@ def chatgpt(query):
10
  return dictionary[query]
11
 
12
  def generateimage1(query):
13
- return query.replace(' ', '-') + '.png'
14
 
15
  def generateimage2(query):
16
- return query.replace(' ', '-') + '-chatgpt.png'
17
 
18
  with gr.Blocks() as demo:
19
  gr.Markdown("Ask **ChatGPT** to generate detailed descriptbions.")
 
10
  return dictionary[query]
11
 
12
  def generateimage1(query):
13
+ return os.path.join(os.path.dirname(__file__), query.replace(' ', '-') + '.png')
14
 
15
  def generateimage2(query):
16
+ return os.path.join(os.path.dirname(__file__), query.replace(' ', '-') + '-chatgpt.png')
17
 
18
  with gr.Blocks() as demo:
19
  gr.Markdown("Ask **ChatGPT** to generate detailed descriptbions.")