Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,8 +33,6 @@ print(r.content)
|
|
| 33 |
|
| 34 |
prompt_text=str(r.content, 'UTF-8')
|
| 35 |
|
| 36 |
-
#prompt_text="Given a topic make a mindmap. The mindmap should cover various aspects not limited to concept, features, companies, types, applications, challenges etc. Output the mindmap in json format. Topic is :"
|
| 37 |
-
|
| 38 |
print(prompt_text)
|
| 39 |
|
| 40 |
def getmindmap(topic,openapikey):
|
|
@@ -54,6 +52,7 @@ def getmindmap(topic,openapikey):
|
|
| 54 |
temperature=0
|
| 55 |
)
|
| 56 |
|
|
|
|
| 57 |
|
| 58 |
df=pd.DataFrame(json.loads(resp['choices'][0]['text']))
|
| 59 |
|
|
|
|
| 33 |
|
| 34 |
prompt_text=str(r.content, 'UTF-8')
|
| 35 |
|
|
|
|
|
|
|
| 36 |
print(prompt_text)
|
| 37 |
|
| 38 |
def getmindmap(topic,openapikey):
|
|
|
|
| 52 |
temperature=0
|
| 53 |
)
|
| 54 |
|
| 55 |
+
print(resp)
|
| 56 |
|
| 57 |
df=pd.DataFrame(json.loads(resp['choices'][0]['text']))
|
| 58 |
|