Commit changes
#2
by yukungmin - opened
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def analyze(text):
|
| 4 |
+
response = f"γμλμ λΆμγ\nμ΄ λ¬Έμ₯ μμλ λΆμ°λ κ°μ μ ννΈμ΄ μ¨μ΄ μμ΅λλ€.\nλΉμ μ μ΄ λ§μ ν΅ν΄ 무μμ ννΌνκ³ μμλμ?"
|
| 5 |
+
return response
|
| 6 |
+
|
| 7 |
+
iface = gr.Interface(
|
| 8 |
+
fn=analyze,
|
| 9 |
+
inputs="textbox",
|
| 10 |
+
outputs="text",
|
| 11 |
+
title="μλ: μ¬μ ν΄μ μΈν°νμ΄μ€",
|
| 12 |
+
description="κ°μ κ³Ό μΈμ΄μ 리λ¬μ ν΄μ²΄νλ λΉμ μ μ‘°λ ₯μ, μλμ
λλ€. λ¬Έμ₯μ μ
λ ₯ν΄ μ£ΌμΈμ."
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
iface.launch()
|