Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,8 @@ def stream(company):
|
|
24 |
if chunk.choices[0].delta.content is not None:
|
25 |
answer = answer + chunk.choices[0].delta.content
|
26 |
yield answer
|
27 |
-
|
|
|
28 |
|
29 |
download_url = f'https://drive.google.com/uc?id={json_url_id}'
|
30 |
output = 'secret_google_service_account.json'
|
@@ -50,10 +51,4 @@ with gr.Blocks(title=title,theme='nota-ai/theme',css="footer {visibility: hidden
|
|
50 |
|
51 |
chat_submit_button.click(fn=fn_chat, inputs=[chat_input], outputs=[chat_output])
|
52 |
|
53 |
-
|
54 |
-
demo.launch(max_threads=40)
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
24 |
if chunk.choices[0].delta.content is not None:
|
25 |
answer = answer + chunk.choices[0].delta.content
|
26 |
yield answer
|
27 |
+
answer_to_save = answer + "\n============\n" + str(linkedin_extracted_info)
|
28 |
+
save_logs(company, answer_to_save, folder_id=logs_folder_id)
|
29 |
|
30 |
download_url = f'https://drive.google.com/uc?id={json_url_id}'
|
31 |
output = 'secret_google_service_account.json'
|
|
|
51 |
|
52 |
chat_submit_button.click(fn=fn_chat, inputs=[chat_input], outputs=[chat_output])
|
53 |
|
54 |
+
demo.launch(max_threads=40)
|
|
|
|
|
|
|
|
|
|
|
|