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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -25
app.py CHANGED
@@ -1,11 +1,36 @@
1
  # Gradio app to run fuego.github_run() on Hugging Face Spaces
2
  # Hosted at https://hf.co/nateraw/fuego
 
3
  import gradio as gr
4
  import yaml
5
-
6
  import fuego
7
 
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  def fuego_github_run_wrapper(
10
  token,
11
  github_repo_id,
@@ -73,34 +98,11 @@ def fuego_github_run_wrapper(
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)
 
1
  # Gradio app to run fuego.github_run() on Hugging Face Spaces
2
  # Hosted at https://hf.co/nateraw/fuego
3
+ # Github clone mods - https://github.com/AaronCWacker/-Fuego-AutoMagiGit-
4
  import gradio as gr
5
  import yaml
 
6
  import fuego
7
 
8
 
9
+ description = """
10
+ ### 🌟 **App Overview** 🌟
11
+ - πŸš€ Launch GitHub scripts on Spaces.
12
+ - 🧰 Choose hardware, set the scene, and ignite!
13
+ - πŸ”— Uses πŸ”₯ [fuego](https://github.com/huggingface/fuego) πŸ”₯. Star it! ⭐
14
+ """
15
+
16
+ additional_info = """
17
+ ### πŸ’² **Pricing Details** πŸ’²
18
+ - πŸ†“ Free with `cpu-basic`.
19
+ - πŸ’» Other hardware? Check [here](https://hf.co/pricing#spaces).
20
+
21
+ ### πŸ› οΈ **How It Works** 🧩
22
+ | Step | 🎬 Action | πŸ“– Description |
23
+ | ---- | ------ | ----------- |
24
+ | 1️⃣ | 🌱 Create Repos | Sets up "runner" and "output" repos. |
25
+ | 2️⃣ | 🚚 Upload Code | Uploads and prepares your script. |
26
+ | 3️⃣ | πŸ”₯ Execute | Runs your script, tracks logs. |
27
+
28
+ ### ❓ **Quick FAQs** ❓
29
+ - 🀷 "No application file"? Try a reset in space settings.
30
+ """
31
+
32
+
33
+
34
  def fuego_github_run_wrapper(
35
  token,
36
  github_repo_id,
 
98
  """
99
  return gr.update(value=output_message, visible=True)
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  output_message = gr.Markdown("", visible=False)
103
 
104
  with gr.Blocks(css="style.css") as demo:
105
+ gr.Markdown("### πŸ”₯FuegoπŸ”₯ πŸ’»πŸŒŸ AutoMagiGit πŸŒŸπŸ’» - Unleashing the Power of GitHub Automation!")
106
  gr.Markdown(description)
107
  with gr.Accordion("πŸ‘€ More Details (Hardware Pricing, How it Works, and FAQ)", open=False):
108
  gr.Markdown(additional_info)