Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,7 @@ MedCall AI is a tool that helps analyze patient calls. It figures out the caller
|
|
27 |
## Whatβs Inside?
|
28 |
```
|
29 |
βββ app.py # Main application (UI)
|
30 |
-
βββ
|
31 |
β βββ ai_response.py # Call summarization
|
32 |
β βββ intent_classifier.py # Intent detection
|
33 |
β βββ sentiment.py # Sentiment analysis
|
@@ -65,7 +65,7 @@ streamlit run app.py
|
|
65 |
### Example Usage
|
66 |
#### Summarizing a Call
|
67 |
```python
|
68 |
-
from
|
69 |
|
70 |
sample_text = "I need an appointment as soon as possible."
|
71 |
summary = generate_call_summary(sample_text)
|
@@ -74,7 +74,7 @@ print(f"Summary: {summary}")
|
|
74 |
|
75 |
#### Detecting Intent
|
76 |
```python
|
77 |
-
from
|
78 |
|
79 |
sample_text = "I want to book an appointment."
|
80 |
intent = classify_intent(sample_text)
|
@@ -83,7 +83,7 @@ print(f"Intent: {intent}")
|
|
83 |
|
84 |
#### Checking Sentiment
|
85 |
```python
|
86 |
-
from
|
87 |
|
88 |
sample_text = "I have been feeling really sick."
|
89 |
sentiment = analyze_sentiment(sample_text)
|
@@ -92,7 +92,7 @@ print(f"Sentiment: {sentiment}")
|
|
92 |
|
93 |
#### Logging Calls
|
94 |
```python
|
95 |
-
from
|
96 |
|
97 |
log_call("I need an appointment", "appointment", "Low", "Neutral", "You can book an appointment online.")
|
98 |
```
|
@@ -103,6 +103,3 @@ If youβd like to improve this project, feel free to fork it, make changes, and
|
|
103 |
## License
|
104 |
This project is open-source under the MIT License.
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
27 |
## Whatβs Inside?
|
28 |
```
|
29 |
βββ app.py # Main application (UI)
|
30 |
+
βββ vocca_ai/
|
31 |
β βββ ai_response.py # Call summarization
|
32 |
β βββ intent_classifier.py # Intent detection
|
33 |
β βββ sentiment.py # Sentiment analysis
|
|
|
65 |
### Example Usage
|
66 |
#### Summarizing a Call
|
67 |
```python
|
68 |
+
from vocca_ai.ai_response import generate_call_summary
|
69 |
|
70 |
sample_text = "I need an appointment as soon as possible."
|
71 |
summary = generate_call_summary(sample_text)
|
|
|
74 |
|
75 |
#### Detecting Intent
|
76 |
```python
|
77 |
+
from vocca_ai.intent_classifier import classify_intent
|
78 |
|
79 |
sample_text = "I want to book an appointment."
|
80 |
intent = classify_intent(sample_text)
|
|
|
83 |
|
84 |
#### Checking Sentiment
|
85 |
```python
|
86 |
+
from vocca_ai.sentiment import analyze_sentiment
|
87 |
|
88 |
sample_text = "I have been feeling really sick."
|
89 |
sentiment = analyze_sentiment(sample_text)
|
|
|
92 |
|
93 |
#### Logging Calls
|
94 |
```python
|
95 |
+
from vocca_ai.db_handler import log_call
|
96 |
|
97 |
log_call("I need an appointment", "appointment", "Low", "Neutral", "You can book an appointment online.")
|
98 |
```
|
|
|
103 |
## License
|
104 |
This project is open-source under the MIT License.
|
105 |
|
|
|
|
|
|