Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name, intensity):
|
4 |
return "Hello, " + name + "!" * int(intensity)
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
|
4 |
+
# Check if running on Hugging Face Spaces
|
5 |
+
is_hf_spaces = os.getenv("HF_SPACES", "false").lower() == "true"
|
6 |
|
7 |
def greet(name, intensity):
|
8 |
return "Hello, " + name + "!" * int(intensity)
|