Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- app.py +12 -5
- requirements.txt +2 -0
app.py
CHANGED
@@ -410,9 +410,9 @@ def unified_handler(audio, text):
|
|
410 |
return response, download_path
|
411 |
|
412 |
#Agentic Framework from HF spaces
|
413 |
-
agent_iframe = gr.HTML(
|
414 |
-
|
415 |
-
)
|
416 |
|
417 |
|
418 |
# if email:
|
@@ -495,7 +495,14 @@ feedback_download_tab = gr.Interface(
|
|
495 |
title="π Download Feedback CSV"
|
496 |
)
|
497 |
|
498 |
-
agent_tab = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
499 |
|
500 |
# Add to your tab list
|
501 |
app = gr.TabbedInterface(
|
@@ -518,5 +525,5 @@ app = gr.TabbedInterface(
|
|
518 |
)
|
519 |
|
520 |
|
521 |
-
app.launch(share=True)
|
522 |
print("π SafeSpace AI is live!")
|
|
|
410 |
return response, download_path
|
411 |
|
412 |
#Agentic Framework from HF spaces
|
413 |
+
# agent_iframe = gr.HTML(
|
414 |
+
# '<iframe src="https://jaamie-mental-health-agent.hf.space" width="100%" height="700px" style="border:none;"></iframe>'
|
415 |
+
# )
|
416 |
|
417 |
|
418 |
# if email:
|
|
|
495 |
title="π Download Feedback CSV"
|
496 |
)
|
497 |
|
498 |
+
agent_tab = gr.Interface(
|
499 |
+
fn=lambda: "Use the assistant below π",
|
500 |
+
inputs=[],
|
501 |
+
outputs=gr.Markdown(
|
502 |
+
f'<iframe src="https://jaamie-mental-health-agent.hf.space" width="100%" height="700px" style="border:none;"></iframe>'
|
503 |
+
),
|
504 |
+
title="π€ Agent Portal"
|
505 |
+
)
|
506 |
|
507 |
# Add to your tab list
|
508 |
app = gr.TabbedInterface(
|
|
|
525 |
)
|
526 |
|
527 |
|
528 |
+
#app.launch(share=True)
|
529 |
print("π SafeSpace AI is live!")
|
requirements.txt
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
transformers>=4.36.0
|
|
|
|
|
2 |
sentence-transformers
|
3 |
sentencepiece
|
4 |
torch
|
|
|
1 |
transformers>=4.36.0
|
2 |
+
gradio>=4.44.1
|
3 |
+
gradio_client>=0.1.5
|
4 |
sentence-transformers
|
5 |
sentencepiece
|
6 |
torch
|