ArseniyPerchik commited on
Commit
c0f0687
·
1 Parent(s): ad51ade
Files changed (4) hide show
  1. .gitignore +31 -0
  2. README.md +5 -0
  3. app.py +18 -0
  4. requirements.txt +1 -0
.gitignore ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ __pycache__
3
+ venv
4
+ env
5
+ .env
6
+ .venv
7
+ .pytest_cache
8
+ .coverage
9
+ .idea
10
+ .vscode
11
+ lightning_logs
12
+ .ipynb_checkpoints
13
+ .ckpt
14
+ example.ckpt
15
+ .neptune
16
+ logs_for_plots
17
+ logs_for_heuristics
18
+ logs_for_graphs
19
+ logs_for_freedom_maps
20
+ logs_for_experiments
21
+ heuristic_tables
22
+ stats
23
+ videos
24
+ algs_RL/stasts
25
+ .DS_Store
26
+ saved_replays
27
+ my_folder
28
+ results
29
+ test-trainer
30
+ .gradio
31
+ secrets.txt
README.md CHANGED
@@ -9,4 +9,9 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
 
 
 
 
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  pinned: false
10
  ---
11
 
12
+ To run in a debugging mode, do this:
13
+ ```zsh
14
+ gradio app.py --watch-dirs app.py
15
+ ```
16
+
17
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def process_text(text):
4
+ return text.upper()
5
+
6
+ with gr.Blocks() as demo:
7
+ gr.Markdown("## 🔤 Text Uppercaserrrrr")
8
+
9
+ with gr.Row():
10
+ input_text = gr.Textbox(label="Enter your text")
11
+ output_text = gr.Textbox(label="Uppercased text", interactive=False)
12
+
13
+ with gr.Row():
14
+ run_button = gr.Button("Convert to UPPERCASE")
15
+
16
+ run_button.click(fn=process_text, inputs=input_text, outputs=output_text)
17
+
18
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio