Spaces:
Build error
Build error
Update app/app.py
Browse files- app/app.py +2 -5
app/app.py
CHANGED
@@ -229,14 +229,11 @@ def submit_to_AAI(api_key,
|
|
229 |
|
230 |
|
231 |
def example_output(language):
|
232 |
-
import os
|
233 |
-
print('\n\n', os.getcwd(), '\n\n')
|
234 |
-
print('\n\n', os.listdir(), '\n\n')
|
235 |
"""Displays example output"""
|
236 |
-
with open("
|
237 |
paras = f.read()
|
238 |
|
239 |
-
with open('
|
240 |
r = json.load(f)
|
241 |
|
242 |
return create_output(r, paras, language)
|
|
|
229 |
|
230 |
|
231 |
def example_output(language):
|
|
|
|
|
|
|
232 |
"""Displays example output"""
|
233 |
+
with open("example_data/paras.txt", 'r') as f:
|
234 |
paras = f.read()
|
235 |
|
236 |
+
with open('example_data/response.json', 'r') as f:
|
237 |
r = json.load(f)
|
238 |
|
239 |
return create_output(r, paras, language)
|