Spaces:
Runtime error
Runtime error
Update prompts.py
Browse files- prompts.py +2 -2
prompts.py
CHANGED
@@ -19,10 +19,10 @@ Available Actions and their inputs:
|
|
19 |
- "quick_respond": For simple conversation.
|
20 |
|
21 |
Example for creating a space:
|
22 |
-
{"action": "create_huggingface_space", "action_input": {"owner": "test-user", "space_name": "my-translator-app", "sdk": "gradio", "markdown_content": "```file: app.py
|
23 |
|
24 |
Example for updating a file:
|
25 |
-
{"action": "update_huggingface_space_file", "action_input": {"owner": "test-user", "space_name": "my-translator-app", "file_path": "app.py", "new_content": "import gradio as gr
|
26 |
|
27 |
Output only the JSON object.
|
28 |
"""
|
|
|
19 |
- "quick_respond": For simple conversation.
|
20 |
|
21 |
Example for creating a space:
|
22 |
+
{"action": "create_huggingface_space", "action_input": {"owner": "test-user", "space_name": "my-translator-app", "sdk": "gradio", "markdown_content": "```file: app.py\\nimport gradio as gr\\n\\ndef translate(text):\\n return text\\n\\ndemo = gr.Interface(fn=translate, inputs='text', outputs='text')\\ndemo.launch()\\n```"}}
|
23 |
|
24 |
Example for updating a file:
|
25 |
+
{"action": "update_huggingface_space_file", "action_input": {"owner": "test-user", "space_name": "my-translator-app", "file_path": "app.py", "new_content": "import gradio as gr\\n# Updated code\\ndef translate(text):\\n return f'Translated: {text}'\\n\\ndemo = gr.Interface(fn=translate, inputs='text', outputs='text')\\ndemo.launch()\\n", "commit_message": "Improve translation logic"}}
|
26 |
|
27 |
Output only the JSON object.
|
28 |
"""
|