Spaces:
Sleeping
A newer version of the Gradio SDK is available:
6.9.0
title: DeepDream Interpreter
emoji: 🔮
colorFrom: indigo
colorTo: blue
sdk: gradio
app_file: app.py
pinned: false
English:
Smart Dream Interpreter (Morphius) 🔮
A simple and creative web application for dream interpretation and analysis using the power of artificial intelligence. The project allows users to enter their dream text and receive a poetic and psychological interpretation based on symbols.
- Simple and beautiful user interface: Built with
Gradiofor a smooth user experience. - Powerful AI engine: Using the advanced
google/gemma-2-27b-itmodel via the free OpenRouter API. - Personalized: The AI model appears as an ancient and wise dream interpreter named "Morpheus".
- Ready to deploy: Easily and for free to deploy in Hugging Face Spaces.
🛠️ Technologies Used
- User Interface: Gradio
- AI Model: Google Gemma 2 27B IT
- API Provider: OpenRouter
- Deployment Platform: Hugging Face Spaces
🚀 Setup and Run Locally
To run this project on your personal system, follow these steps:
- Clone the repository:
git clone [https://github.com/YOUR_USERNAME/dream-interpreter.git](https://github.com/YOUR_USERNAME/dream-interpreter.git)
cd dream-interpreter
- Install Prerequisites: It is recommended to use a virtual environment.
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
- Set up your API key:
- Create an account on OpenRouter.ai and get an API key.
- Create a file called
.envin the root of your project and put your key in it:
OPENROUTER_API_KEY="sk-or-..."
- The
app.pyfile is written to read this variable automatically.
- Run the program:
gradio app.py
Now you can view the application in your browser at http://127.0.0.1:7860.
☁️ Deploying to Hugging Face Spaces
This project is optimized for deployment to Spaces:
- Create a new Space of type Gradio SDK in Hugging Face.
- Upload the
app.pyandrequirements.txtfiles to it. - Go to Settings > Secrets and create a new Secret named
OPENROUTER_API_KEYand the value of your API key. - Space will automatically build and run the application.
🤝 Contributions
Any contributions, bug reports, or suggestions for improving the project are welcome. Please open an Issue or submit a Pull Request.
📄 License
This project is released under the Apache License.
persian
مفسر خواب هوشمند (Morphius) 🔮
یک وب اپلیکیشن ساده و خلاقانه برای تعبیر و تحلیل خواب با استفاده از قدرت هوش مصنوعی. این پروژه به کاربران اجازه میدهد تا متن خواب خود را وارد کرده و تفسیری شاعرانه و روانشناسانه بر اساس نمادها دریافت کنند.
- رابط کاربری ساده و زیبا: ساخته شده با
Gradioبرای تجربه کاربری روان. - موتور هوش مصنوعی قدرتمند: استفاده از مدل پیشرفته
google/gemma-2-27b-itاز طریق API رایگان OpenRouter. - شخصیتپردازی شده: مدل هوش مصنوعی در نقش یک مفسر خواب باستانی و خردمند به نام "مورفیوس" ظاهر میشود.
- آماده استقرار: به راحتی و به صورت رایگان در Hugging Face Spaces قابل استقرار است.
🛠️ تکنولوژیهای استفاده شده
- رابط کاربری: Gradio
- مدل هوش مصنوعی: Google Gemma 2 27B IT
- ارائه دهنده API: OpenRouter
- پلتفرم استقرار: Hugging Face Spaces
🚀 راهاندازی و اجرا به صورت محلی (Local)
برای اجرای این پروژه روی سیستم شخصی خود، مراحل زیر را دنبال کنید:
کلون کردن ریپازیتوری:
git clone [https://github.com/YOUR_USERNAME/dream-interpreter.git](https://github.com/YOUR_USERNAME/dream-interpreter.git) cd dream-interpreterنصب پیشنیازها: توصیه میشود از یک محیط مجازی (virtual environment) استفاده کنید.
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txtتنظیم کلید API:
- یک حساب کاربری در OpenRouter.ai بسازید و یک کلید API دریافت کنید.
- یک فایل به نام
.envدر ریشه پروژه بسازید و کلید خود را در آن قرار دهید:OPENROUTER_API_KEY="sk-or-..." - فایل
app.pyطوری نوشته شده که این متغیر را به صورت خودکار بخواند.
اجرای برنامه:
gradio app.pyحالا میتوانید برنامه را در مرورگر خود از طریق آدرس
http://127.0.0.1:7860مشاهده کنید.
☁️ استقرار در Hugging Face Spaces
این پروژه برای استقرار در Spaces بهینه شده است:
- یک Space جدید از نوع Gradio SDK در Hugging Face بسازید.
- فایلهای
app.pyوrequirements.txtرا در آن آپلود کنید. - به بخش Settings > Secrets بروید و یک Secret جدید با نام
OPENROUTER_API_KEYو مقدار کلید API خود بسازید. - Space به طور خودکار برنامه را ساخته و اجرا خواهد کرد.
🤝 مشارکت
از هرگونه مشارکت، گزارش باگ یا پیشنهاد برای بهبود پروژه استقبال میشود. لطفاً یک Issue باز کنید یا یک Pull Request ارسال نمایید.
📄 مجوز
این پروژه تحت مجوز Apache منتشر شده است.
title: DeepDream emoji: 📊 colorFrom: red colorTo: pink sdk: gradio sdk_version: 5.47.0 app_file: app.py pinned: false license: apache-2.0 short_description: Intelligent Dream Interpreter (Morphius)🔮
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
88299fea5a14245a0152f59c48b53da35ba7e0a5
