Spaces:
Runtime error
Runtime error
Commit History
-
Update requirements.txt
before: openai==0.27.4 gradio==3.24.1 google-search-results==2.4.2 google-api-python-client==2.83.0 wolframalpha langchain==0.0.131 requests==2.28.2 git+https://github.com/openai/whisper.git boto3==1.26.106 faiss-cpu7518be8
-
Update app.py
3561d48 -
Update app.py
6d95d66 -
Update app.py
0ad2615 -
Update app.py
b8a76b4 -
Update app.py
f5f20ea -
Update requirements.txt
0274929 -
Update app.py
temp revert15b8fb2 -
Update app.py
import asyncio01c02d1 -
Update requirements.txt
asyncioff8ed84 -
Title: Improve set_openai_api_key function with asynchronous programming, error handling, and modularity Description: This pull request introduces several improvements to the set_openai_api_key function in the final.py file, making it more maintainable, efficient, and easier to understand. The changes include: Asynchronous programming: The updated set_openai_api_key function now uses asynchronous programming (with async/await) to avoid blocking the main thread and improve the application's performance. Error handling: The new version of the function includes error handling to ensure that the API key is valid and properly set for each component. This can help prevent issues when making requests to the OpenAI API. Modularity: Instead of directly setting the API key for each component within the set_openai_api_key function, separate functions have been created for each component that sets its API key. This makes the code more modular and easier to maintain. Code documentation: Comments and docstrings have been added to the function to explain its purpose, inputs, outputs, and any side effects. This makes the code more readable and maintainable. Additionally, the second openai_api_key_textbox.change() method call has been updated to use the new asynchronous set_openai_api_key function with a lambda function. These changes align the set_openai_api_key function with modern programming best practices and ensure that the OpenAI API key is properly set for all necessary components in the application, allowing them to make requests to the OpenAI API. (#4)
- Title: Improve set_openai_api_key function with asynchronous programming, error handling, and modularity Description: This pull request introduces several improvements to the set_openai_api_key function in the final.py file, making it more maintainable, efficient, and easier to understand. The changes include: Asynchronous programming: The updated set_openai_api_key function now uses asynchronous programming (with async/await) to avoid blocking the main thread and improve the application's performance. Error handling: The new version of the function includes error handling to ensure that the API key is valid and properly set for each component. This can help prevent issues when making requests to the OpenAI API. Modularity: Instead of directly setting the API key for each component within the set_openai_api_key function, separate functions have been created for each component that sets its API key. This makes the code more modular and easier to maintain. Code documentation: Com…bdeb170
-
Update app.py
promptlayerf6a41c2 -
Update requirements.txt
promptlayer606f015
-
Update app.py
2048 token limit. News api enableddd04a54 -
Update app.py
6509cb9 -
Update app.py
5356da7 -
Update app.py
78b348b -
Update app.py
tensor = tensor.to(torch.float32) # Converts tensor to Float data typeb10eaf8
-
Update app.py
5009d61
-
Update requirements.txt
updates835f45d
-
Update app.py
8269fe1
-
save api key
1a3c41a
-
Update app.py
775226f -
Update app.py
1024 max_tokensc2a1e9a
-
Update app.py
c240edd -
Upload tempfile.mp4
5f78291 -
Delete videos/tempfile.mp4
dda1c18 -
Upload Masahiro.mp4
97b05fe -
Delete videos/Masahiro.mp4
6797589 -
Duplicate from JavaFXpert/Chat-GPT-LangChain
Co-authored-by: James Weaver <JavaFXpert@users.noreply.huggingface.co>8592444