awacke1 commited on
Commit
707df4e
Β·
verified Β·
1 Parent(s): cdb6c35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -23
app.py CHANGED
@@ -73,38 +73,34 @@ def fuego_github_run_wrapper(
73
  """
74
  return gr.update(value=output_message, visible=True)
75
 
76
-
77
  description = """
78
- This app lets you run scripts from GitHub on Spaces, using any hardware you'd like. Just point to a repo, the script you'd like to run, the dependencies to install, and any args to pass to your script, and watch it go. 😎
79
-
80
- It uses πŸ”₯[fuego](https://github.com/huggingface/fuego)πŸ”₯ under the hood to launch your script in one line of Python code. Give the repo a ⭐️ if you think its πŸ”₯.
81
-
82
- **Note: You'll need a Hugging Face token with write access, which you can get from [here](https://hf.co/settings/tokens)**
83
  """
84
 
85
  additional_info = """
86
- ## Pricing
87
-
88
- Runs using this tool are **free** as long as you use `cpu-basic` hardware. πŸ”₯
89
-
90
- **See pricing for accelerated hardware (anything other than `cpu-basic`) [here](https://hf.co/pricing#spaces)**
91
-
92
- ## What this space does:
93
- 1. Spins up 2 new HF repos for you: a "runner" space repo and an "output" dataset repo.
94
- 2. Uploads your code to the space, as well as some wrapper code that invokes your script.
95
- 3. Runs your code on the space via the wrapper. Logs should show up in the space.
96
- 4. When the script is done, it takes anything saved to the `output_dirs` and uploads the files within to the output dataset repo
97
- 5. Deletes the space (or downgrades, or just leaves on). Depends on your choice of `delete_space_on_completion` and `downgrade_hardware_on_completion`.
98
-
99
- ## FAQ
100
-
101
- - If your space ends up having a "no application file" issue, you may need to "factory reset" the space. You can do this from the settings page of the space.
102
  """
103
 
 
104
  output_message = gr.Markdown("", visible=False)
105
 
106
  with gr.Blocks(css="style.css") as demo:
107
- gr.Markdown("# πŸ”₯FuegoπŸ”₯ GitHub Script Runner")
108
  gr.Markdown(description)
109
  with gr.Accordion("πŸ‘€ More Details (Hardware Pricing, How it Works, and FAQ)", open=False):
110
  gr.Markdown(additional_info)
 
73
  """
74
  return gr.update(value=output_message, visible=True)
75
 
 
76
  description = """
77
+ ### 🌟 **App Overview** 🌟
78
+ - πŸš€ Launch GitHub scripts on Spaces.
79
+ - 🧰 Choose hardware, set the scene, and ignite!
80
+ - πŸ”— Uses πŸ”₯ [fuego](https://github.com/huggingface/fuego) πŸ”₯. Star it! ⭐
 
81
  """
82
 
83
  additional_info = """
84
+ ### πŸ’² **Pricing Details** πŸ’²
85
+ - πŸ†“ Free with `cpu-basic`.
86
+ - πŸ’» Other hardware? Check [here](https://hf.co/pricing#spaces).
87
+
88
+ ### πŸ› οΈ **How It Works** 🧩
89
+ | Step | 🎬 Action | πŸ“– Description |
90
+ | ---- | ------ | ----------- |
91
+ | 1️⃣ | 🌱 Create Repos | Sets up "runner" and "output" repos. |
92
+ | 2️⃣ | 🚚 Upload Code | Uploads and prepares your script. |
93
+ | 3️⃣ | πŸ”₯ Execute | Runs your script, tracks logs. |
94
+
95
+ ### ❓ **Quick FAQs** ❓
96
+ - 🀷 "No application file"? Try a reset in space settings.
 
 
 
97
  """
98
 
99
+
100
  output_message = gr.Markdown("", visible=False)
101
 
102
  with gr.Blocks(css="style.css") as demo:
103
+ gr.Markdown("# πŸ”₯FuegoπŸ”₯ πŸ’»πŸŒŸ AutoMagiGit πŸŒŸπŸ’» - Unleashing the Power of GitHub Automation!")
104
  gr.Markdown(description)
105
  with gr.Accordion("πŸ‘€ More Details (Hardware Pricing, How it Works, and FAQ)", open=False):
106
  gr.Markdown(additional_info)