Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# gr.load를 사용하면 Hugging Face가 내부 인프라망을 통해
|
| 4 |
+
# 모델을 자동으로 Gradio 인터페이스와 결합해 줍니다. (DNS 장애 우회 가능)
|
| 5 |
+
demo = gr.load(
|
| 6 |
+
name="models/google/gemma-4-E4B-it",
|
| 7 |
+
src="huggingface",
|
| 8 |
+
title="🤖 Gemma 4 E4B IT Chat",
|
| 9 |
+
description="Gemma 4 E4B IT via Hugging Face Auto-load",
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
if __name__ == "__main__":
|
| 13 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|