Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.")
|