Spaces:
Sleeping
Sleeping
kpkishankrishna commited on
Commit ·
022deaa
1
Parent(s): 242052f
ast import
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import openai
|
|
| 5 |
import pyshine as ps
|
| 6 |
openai.api_key = "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"
|
| 7 |
import validators
|
|
|
|
| 8 |
def predict(image, model, url_or_text, prompt, temperature, max_tokens, text_in_image, x_cor, y_cor,
|
| 9 |
font_size, backgound_RGB, text_RGB, thickness, opacity, line_space):
|
| 10 |
if text_in_image == "use_url":
|
|
|
|
| 5 |
import pyshine as ps
|
| 6 |
openai.api_key = "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"
|
| 7 |
import validators
|
| 8 |
+
import ast
|
| 9 |
def predict(image, model, url_or_text, prompt, temperature, max_tokens, text_in_image, x_cor, y_cor,
|
| 10 |
font_size, backgound_RGB, text_RGB, thickness, opacity, line_space):
|
| 11 |
if text_in_image == "use_url":
|