Update app.py
Browse files
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("
|
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)
|