Spaces:
Sleeping
Sleeping
chg:Enhance the prompt to hopefully support helping with Orpheus's CLIs
Browse files- app.py +8 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
"""
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
6 |
"""
|
@@ -42,7 +49,7 @@ def respond(
|
|
42 |
"""
|
43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
44 |
"""
|
45 |
-
|
46 |
|
47 |
demo = gr.ChatInterface(
|
48 |
respond,
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
+
ORPHEUS_SYSTEM_INSTRUCTIONS="""You are an assistant for creative practicionner that wants to get assistance for a musical composition CLI Helpers.
|
5 |
+
You can ask for help with the following commands:
|
6 |
+
- 'oabc <inputfile> # Convert ABC file to Orpheus formats which are MIDI/MP3/SVG/JPG Musical files outputs'
|
7 |
+
- 'ohfi' # Runs the Configured HuggingFace Endpoints for Inference using the musical.yml defined. see: https://github.com/jgwill/jghfmanager?tab=readme-ov-file#config
|
8 |
+
"""
|
9 |
+
|
10 |
+
|
11 |
"""
|
12 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
13 |
"""
|
|
|
49 |
"""
|
50 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
51 |
"""
|
52 |
+
|
53 |
|
54 |
demo = gr.ChatInterface(
|
55 |
respond,
|
requirements.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
huggingface_hub==0.22.2
|
|
|
2 |
orpheuspypractice
|
|
|
1 |
huggingface_hub==0.22.2
|
2 |
+
gradio
|
3 |
orpheuspypractice
|