Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,14 +10,13 @@ Follow us on [linkedin](https://www.linkedin.com/company/gathnex/) and [Github](
|
|
| 10 |
|
| 11 |
|
| 12 |
def stream(prompt, g, OPENAI_API_KEY, access_token):
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
return prompt, g, str(OPENAI_API_KEY), str(access_token)
|
| 21 |
|
| 22 |
|
| 23 |
css = """
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
def stream(prompt, g, OPENAI_API_KEY, access_token):
|
| 13 |
+
llm = llm_auto(prompt, OPENAI_API_KEY)
|
| 14 |
+
if llm.intent_indentifier() == "#Post":
|
| 15 |
+
url = llm.prompt_link_capturer()
|
| 16 |
+
res = LinkedinAutomate(access_token, url, OPENAI_API_KEY).main_func()
|
| 17 |
+
return llm.posted_or_not(res)
|
| 18 |
+
else:
|
| 19 |
+
return llm.normal_gpt()
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
css = """
|