File size: 883 Bytes
4b490dd
 
 
 
 
 
 
 
 
 
 
 
 
df21123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f6bf9e6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: House Room Classifier
emoji: 🌍
colorFrom: red
colorTo: gray
sdk: gradio
sdk_version: 4.27.0
app_file: app.py
pinned: false
license: apache-2.0
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference


python -m venv .env
You should now have a directory called .env in your otherwise empty folder:


ls -a

.      ..    .env
You can jump in and out of your virtual environment with the activate and deactivate scripts:


# Activate the virtual environment
source .env/bin/activate

# Deactivate the virtual environment
deactivate
You can make sure that the environment is activated by running the which python command: if it points to the virtual environment, then you have successfully activated it!



#Push to repo
git add app.py
git commit -m "Add application file"
git push

#run
source .env/bin/activate
python3 app.py