broadfield-dev commited on
Commit
b3c5391
·
verified ·
1 Parent(s): 7e165c0

Update prompts.py

Browse files
Files changed (1) hide show
  1. 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\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
  """
 
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
  """