Spaces:
Runtime error
Runtime error
default method
Browse files- gpt_analyze.py +3 -3
gpt_analyze.py
CHANGED
|
@@ -13,10 +13,10 @@ from get_markdown import get_markdown
|
|
| 13 |
|
| 14 |
|
| 15 |
def summary(text, api_key=None, method='summary'):
|
| 16 |
-
if method == '
|
| 17 |
-
return summary_text(text, api_key)
|
| 18 |
-
else:
|
| 19 |
return get_markdown(text, api_key)
|
|
|
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
def summary_text(text, api_key=None):
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
def summary(text, api_key=None, method='summary'):
|
| 16 |
+
if method == 'markmap':
|
|
|
|
|
|
|
| 17 |
return get_markdown(text, api_key)
|
| 18 |
+
else:
|
| 19 |
+
return summary_text(text, api_key)
|
| 20 |
|
| 21 |
|
| 22 |
def summary_text(text, api_key=None):
|