myreport12 commited on
Commit
81e55ea
·
verified ·
1 Parent(s): 81a9efc

Upload 6 files

Browse files
Files changed (4) hide show
  1. Dockerfile +1 -0
  2. README.md +12 -4
  3. app.py +1 -1
  4. requirements.txt +1 -2
Dockerfile CHANGED
@@ -6,6 +6,7 @@ ENV PYTHONUNBUFFERED=1
6
  ENV PIP_NO_CACHE_DIR=1
7
  ENV GRADIO_SERVER_NAME=0.0.0.0
8
  ENV GRADIO_SERVER_PORT=7860
 
9
 
10
  RUN apt-get update && apt-get install -y --no-install-recommends \
11
  ffmpeg \
 
6
  ENV PIP_NO_CACHE_DIR=1
7
  ENV GRADIO_SERVER_NAME=0.0.0.0
8
  ENV GRADIO_SERVER_PORT=7860
9
+ ENV GRADIO_ANALYTICS_ENABLED=False
10
 
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  ffmpeg \
README.md CHANGED
@@ -42,8 +42,16 @@ NVIDIA_MODEL=qwen/qwen2.5-coder-32b-instruct
42
  NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
43
  ```
44
 
45
- ## Catatan
46
 
47
- - Jangan tulis API key langsung di `app.py`.
48
- - Jalankan notebook `.ipynb` terlebih dahulu sebelum di-upload agar output/grafik tersimpan.
49
- - Requirements sudah dipin agar cocok dengan `gradio==4.44.1`.
 
 
 
 
 
 
 
 
 
42
  NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
43
  ```
44
 
45
+ ## Catatan perbaikan
46
 
47
+ Versi ini memakai `gradio==5.49.1` untuk menghindari error lama pada `gradio_client` seperti:
48
+
49
+ ```txt
50
+ TypeError: argument of type 'bool' is not iterable
51
+ ```
52
+
53
+ Aplikasi juga di-bind ke port Hugging Face Docker:
54
+
55
+ ```txt
56
+ 0.0.0.0:7860
57
+ ```
app.py CHANGED
@@ -594,4 +594,4 @@ with gr.Blocks(title="AI Assistant Mahasiswa NVIDIA") as demo:
594
  check_btn.click(fn=test_api_connection, inputs=None, outputs=check_output)
595
 
596
  if __name__ == "__main__":
597
- demo.queue(max_size=20).launch(server_name="0.0.0.0", server_port=7860)
 
594
  check_btn.click(fn=test_api_connection, inputs=None, outputs=check_output)
595
 
596
  if __name__ == "__main__":
597
+ demo.queue(max_size=20).launch(server_name="0.0.0.0", server_port=7860, share=False, show_api=False)
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
- gradio==4.44.1
2
- huggingface_hub==0.25.2
3
  openai>=1.30.0
4
  nbformat>=5.10.4
5
  python-docx>=1.1.2
 
1
+ gradio==5.49.1
 
2
  openai>=1.30.0
3
  nbformat>=5.10.4
4
  python-docx>=1.1.2