Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- README.md +20 -6
- requirements.txt +7 -0
README.md
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
---
|
| 3 |
+
title: PharmaCircle AI Data Analyst
|
| 4 |
+
emoji: π
|
| 5 |
+
colorFrom: blue
|
| 6 |
+
colorTo: green
|
| 7 |
sdk: gradio
|
| 8 |
+
sdk_version: 4.19.1
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# π PharmaCircle AI Data Analyst
|
| 14 |
+
|
| 15 |
+
This is a Gradio application that acts as an AI-powered data analyst for the PharmaCircle database. It uses a Large Language Model (LLM) to translate natural language questions into Solr queries, executes them, and then generates visualizations and reports based on the results.
|
| 16 |
+
|
| 17 |
+
## Required Secrets
|
| 18 |
+
|
| 19 |
+
To run this space, you will need to set the following secrets in the "Settings" tab of your Hugging Face Space:
|
| 20 |
+
|
| 21 |
+
- `SSH_HOST`: The hostname or IP address of the SSH server for the tunnel.
|
| 22 |
+
- `SSH_USER`: The username for the SSH connection.
|
| 23 |
+
- `SSH_PASS`: The password for the SSH connection.
|
| 24 |
+
- `SOLR_USER`: The username for the Solr database.
|
| 25 |
+
- `SOLR_PASS`: The password for the Solr database.
|
| 26 |
+
- `GEMINI_API_KEY`: Your Google Gemini API key.
|
requirements.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio
|
| 2 |
+
pysolr
|
| 3 |
+
sshtunnel
|
| 4 |
+
google-generativeai
|
| 5 |
+
pandas
|
| 6 |
+
seaborn
|
| 7 |
+
matplotlib
|