Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prithivsakthiur/imagegpt-4xl
Image Knowledge base / Idea / Problem Solve / Analysis
https://github.com/prithivsakthiur/imagegpt-4xl
gradio huggingface huggingface-transformers image instructor microsoft phi python question-answering
Last synced: 9 days ago
JSON representation
Image Knowledge base / Idea / Problem Solve / Analysis
- Host: GitHub
- URL: https://github.com/prithivsakthiur/imagegpt-4xl
- Owner: PRITHIVSAKTHIUR
- Created: 2024-05-28T12:20:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-31T08:50:56.000Z (7 months ago)
- Last Synced: 2024-05-31T10:04:48.258Z (7 months ago)
- Topics: gradio, huggingface, huggingface-transformers, image, instructor, microsoft, phi, python, question-answering
- Language: Python
- Homepage: https://huggingface.co/spaces/prithivMLmods/ImageGPT-4XL
- Size: 819 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
title: ImageGPT 4XL
emoji: ☄️
colorFrom: pink
colorTo: gray
sdk: gradio
sdk_version: 4.31.5
app_file: app.py
pinned: true
license: creativeml-openrail-m
short_description: Analyze, solve, ask ..
---![alt text](assets/25.png)
🚀Check out the configuration reference at : https://huggingface.co/docs/hub/spaces-config-reference
🚀Huggingface space : https://huggingface.co/spaces/prithivMLmods/ImageGPT-4XL
🚀The GitHub Model Workspace :
1. Install the client if you don't already have it installed.
$ pip install gradio_client
2. Find the API endpoint below corresponding to your desired function in the app. Copy the code snippet, replacing the placeholder values with your own input data. If this is a private Space, you may need to pass your Hugging Face token as well (read more). Or
to automatically generate your API requests.
api_name: /chat
from gradio_client import Client
client = Client("prithivMLmods/ImageGPT-4XL")
result = client.predict(
message={"text":"","files":[]},
api_name="/chat"
)
print(result)
Accepts 1 parameter:
message Dict(text: str, files: List[filepath]) Default: {"text":"","files":[]}
The input value that is provided in the "parameter_1" Multimodaltextbox component.
Returns 1 element
Dict(text: str, files: List[filepath])
The output value that appears in the "value_1" Multimodaltextbox component.## 🌚The image given to the gpt to process
![alt text](assets/11.png)
## 🌝The processed from the model
![alt text](assets/22.png)
## The examples given to the model:
| ![Image 1](assets/images/1.png) | ![Image 2](assets/images/2.png) |
|---------------------------------|---------------------------------|
| ![Image 3](assets/images/3.png) | ![Image 4](assets/images/4.png) |## Requirements.txt [ PyPI ]
#flash_attn
accelerate
git+https://github.com/huggingface/transformers.git@main
spaces
torchvision
Pillow.
.
.