Spaces:
Runtime error
Runtime error
mrolando
commited on
Commit
·
3f285ec
1
Parent(s):
351a99e
added model
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -30,7 +30,7 @@ def get_image(text: str, translate: bool):
|
|
30 |
if translate:
|
31 |
text = translate_text(text)
|
32 |
response = openai.Image.create(
|
33 |
-
prompt=text, n=1, size="512x512"
|
34 |
) # ,response_format="b64_json"
|
35 |
print(response)
|
36 |
|
|
|
30 |
if translate:
|
31 |
text = translate_text(text)
|
32 |
response = openai.Image.create(
|
33 |
+
prompt=text, n=1, size="512x512", model="dall-e-2"
|
34 |
) # ,response_format="b64_json"
|
35 |
print(response)
|
36 |
|
requirements.txt
CHANGED
@@ -4,4 +4,5 @@ gradio
|
|
4 |
python-dotenv
|
5 |
transformers
|
6 |
torch
|
7 |
-
sentencepiece
|
|
|
|
4 |
python-dotenv
|
5 |
transformers
|
6 |
torch
|
7 |
+
sentencepiece
|
8 |
+
pillow
|