Spaces:
Sleeping
Sleeping
Delete readme.md
Browse files
readme.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
| 1 |
-
# Gorilla LLM Demo App π¦βπ€
|
| 2 |
-
|
| 3 |
-
This is a demo application showcasing the usage of OpenAI's language model (LLM) to interact with the Gorilla Server. The application utilizes Streamlit to create a user-friendly interface for generating and executing code based on user prompts.
|
| 4 |
-
|
| 5 |
-
## Overview
|
| 6 |
-
|
| 7 |
-
The Gorilla LLM Demo App is designed to:
|
| 8 |
-
- Interact with the Gorilla Server using OpenAI's language model.
|
| 9 |
-
- Generate code based on user prompts and selected model options.
|
| 10 |
-
- Execute the generated code and display the results using Streamlit's interface.
|
| 11 |
-
|
| 12 |
-
## Prerequisites
|
| 13 |
-
|
| 14 |
-
Before running the Gorilla LLM Demo App, you need to have the following installed:
|
| 15 |
-
- Python (3.6 or later)
|
| 16 |
-
- Pip (Python package installer)
|
| 17 |
-
|
| 18 |
-
## Installation
|
| 19 |
-
|
| 20 |
-
1. Clone this repository to your local machine:
|
| 21 |
-
|
| 22 |
-
```
|
| 23 |
-
git clone https://github.com/yourusername/gorilla-llm-demo.git
|
| 24 |
-
cd gorilla-llm-demo
|
| 25 |
-
```
|
| 26 |
-
|
| 27 |
-
1. Install the required dependencies:
|
| 28 |
-
```
|
| 29 |
-
pip install -r requirements.txt
|
| 30 |
-
```
|
| 31 |
-
|
| 32 |
-
## Usage
|
| 33 |
-
|
| 34 |
-
Make sure you have cloned the repository and installed the dependencies.
|
| 35 |
-
|
| 36 |
-
Run the Streamlit app:
|
| 37 |
-
```
|
| 38 |
-
streamlit run app.py
|
| 39 |
-
```
|
| 40 |
-
1. The application interface will open in a new browser tab. You will see the following sections:
|
| 41 |
-
- Enter your prompt: Type in the prompt you want to use to generate code.
|
| 42 |
-
- Select a model: Choose a model option from the dropdown list.
|
| 43 |
-
- Gorilla Magic button: Click this button to initiate the code generation process.
|
| 44 |
-
|
| 45 |
-
2. After clicking the "Gorilla Magic" button, the app will display the generated code and its execution result. The display will vary based on the selected model.
|
| 46 |
-
|
| 47 |
-
3. You can modify the prompt and model selection and repeat the process as needed.
|
| 48 |
-
|
| 49 |
-
Important Notes
|
| 50 |
-
|
| 51 |
-
* The application utilizes the OpenAI API and communicates with the Gorilla Server. Ensure you have the appropriate access and API key for both services.
|
| 52 |
-
* Be cautious when executing generated code, as it may have unintended consequences or security risks.
|
| 53 |
-
* This application is intended for demonstration purposes and should not be used in a production environment without careful consideration and testing.
|
| 54 |
-
|
| 55 |
-
Contributing
|
| 56 |
-
|
| 57 |
-
Contributions to the Gorilla LLM Demo App are welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue.
|
| 58 |
-
License
|
| 59 |
-
|
| 60 |
-
This project is licensed under the MIT License.
|
| 61 |
-
|
| 62 |
-
## Demonstration
|
| 63 |
-
|
| 64 |
-
### User Interface
|
| 65 |
-
1. User can enter a prompt and also choose the optional models provided by Gorilla
|
| 66 |
-

|
| 67 |
-
|
| 68 |
-
2. Sample User input
|
| 69 |
-

|
| 70 |
-
|
| 71 |
-
3. Output Code (this is a subprocess,stored and run in local enviroment)
|
| 72 |
-

|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|