Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import openai
|
|
|
2 |
|
3 |
openai.api_key = "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"
|
4 |
|
@@ -14,8 +15,6 @@ def convert_text_to_structured(text):
|
|
14 |
structured_data = response["choices"][0]["text"]
|
15 |
return structured_data
|
16 |
|
17 |
-
import gradio as gr
|
18 |
-
|
19 |
def convert_text(input_text):
|
20 |
return convert_text_to_structured(input_text)
|
21 |
|
|
|
1 |
import openai
|
2 |
+
import gradio as gr
|
3 |
|
4 |
openai.api_key = "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"
|
5 |
|
|
|
15 |
structured_data = response["choices"][0]["text"]
|
16 |
return structured_data
|
17 |
|
|
|
|
|
18 |
def convert_text(input_text):
|
19 |
return convert_text_to_structured(input_text)
|
20 |
|