54justin commited on
Commit
667965b
·
verified ·
1 Parent(s): 101f06b

Upload 21 files

Browse files
Files changed (5) hide show
  1. DEPLOYMENT_GUIDE.md +24 -0
  2. app.py +13 -11
  3. app_clean.py +19 -0
  4. app_ultra_simple.py +9 -0
  5. requirements.txt +1 -1
DEPLOYMENT_GUIDE.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # �� Copilot �ͦ�
2
+ # Hugging Face Spaces ���p�M��
3
+
4
+ ## �Ȼݭn�W�Ǫ��ɮ�:
5
+ 1. app.py (�D�n�����ɮ�)
6
+ 2. requirements.txt (�̩ۨ��ɮ�)
7
+ 3. README.md (�]�t Spaces metadata)
8
+
9
+ ## ���n�W�Ǫ��ɮ�:
10
+ - �Ҧ���L .py �ɮ� (main.py, scraper.py, analyzer.py ��)
11
+ - output/ �ؿ�
12
+ - .ipynb �ɮ�
13
+ - ��������ɮ�
14
+
15
+ ## ��]:
16
+ - �Ӧh�ɮץi��ɭP�c�ؽĬ�
17
+ - �u�ݭn�̰򥻪��ɮרӴ��ճ��p
18
+ - ���\��A�v�B�K�[�\��
19
+
20
+ ## ���p�B�J:
21
+ 1. �Ыطs�� Hugging Face Space
22
+ 2. �u�W�ǤW�z 3 ���ɮ�
23
+ 3. �T�{���p���\
24
+ 4. �p�ݭn�A�A�K�[��L�\��Ҳ�
app.py CHANGED
@@ -1,17 +1,19 @@
1
- # �� Copilot �ͦ�
2
  import gradio as gr
3
 
4
- def hello(name):
5
- if not name:
6
- name = "�ϥΪ�"
7
- return f"Hello {name}! ? 591�����R�����b�}�o��..."
 
 
 
 
8
 
9
  demo = gr.Interface(
10
- fn=hello,
11
- inputs=gr.Textbox(label="��J�z���W�r", placeholder="�п�J�W�r"),
12
- outputs=gr.Textbox(label="�ݭ԰T��"),
13
- title="? 591���Τ��R�� - ���ժ���"
14
  )
15
 
16
- if __name__ == "__main__":
17
- demo.launch()
 
 
1
  import gradio as gr
2
 
3
+ def analyze():
4
+ return """# 591 Rental Analyzer
5
+
6
+ ## Status: Running on Hugging Face Spaces
7
+
8
+ This is a test version to verify deployment.
9
+ Contact support if you see this message.
10
+ """
11
 
12
  demo = gr.Interface(
13
+ fn=analyze,
14
+ inputs=[],
15
+ outputs="markdown",
16
+ title="591 Rental Analyzer"
17
  )
18
 
19
+ demo.launch()
 
app_clean.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def analyze():
4
+ return """# 591 Rental Analyzer
5
+
6
+ ## Status: Running on Hugging Face Spaces
7
+
8
+ This is a test version to verify deployment.
9
+ Contact support if you see this message.
10
+ """
11
+
12
+ demo = gr.Interface(
13
+ fn=analyze,
14
+ inputs=[],
15
+ outputs="markdown",
16
+ title="591 Rental Analyzer"
17
+ )
18
+
19
+ demo.launch()
app_ultra_simple.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return "Hello " + name + "!"
5
+
6
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+
8
+ if __name__ == "__main__":
9
+ demo.launch()
requirements.txt CHANGED
@@ -1 +1 @@
1
- # �� Copilot �ͦ� - �Ū� requirements�A�ϥιw�]�M��
 
1
+ # Empty requirements - using default packages only