Spaces:
Build error
Build error
Upload 3 files
Browse files
app.py
CHANGED
|
@@ -19,9 +19,14 @@ def generate_image(prompt):
|
|
| 19 |
image = response.content
|
| 20 |
return image
|
| 21 |
else:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
print(response.text)
|
| 23 |
return "Error: " + response.text
|
| 24 |
|
|
|
|
| 25 |
# Create the Gradio interface
|
| 26 |
iface = gr.Interface(fn=generate_image,
|
| 27 |
inputs=gr.Textbox(label="Enter your prompt", placeholder="Type your prompt here..."),
|
|
|
|
| 19 |
image = response.content
|
| 20 |
return image
|
| 21 |
else:
|
| 22 |
+
<<<<<<< HEAD
|
| 23 |
+
print(response.text)
|
| 24 |
+
return "Error: " + response.text
|
| 25 |
+
=======
|
| 26 |
print(response.text)
|
| 27 |
return "Error: " + response.text
|
| 28 |
|
| 29 |
+
>>>>>>> 34ec04ff6180c026f9a24aefe1b8aab45e7535e8
|
| 30 |
# Create the Gradio interface
|
| 31 |
iface = gr.Interface(fn=generate_image,
|
| 32 |
inputs=gr.Textbox(label="Enter your prompt", placeholder="Type your prompt here..."),
|