Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ try:
|
|
35 |
print(f"컬λΌ: {df.columns}")
|
36 |
except Exception as e:
|
37 |
print(f"Parquet νμΌ λ‘λ μ€ μ€λ₯ λ°μ: {e}")
|
38 |
-
df = pd.atarame(columns=['instruction', 'responsea', 'responseb']) # λΉ
|
39 |
|
40 |
def getanswer(instruction):
|
41 |
matchingresponse = df[df['instruction'] == instruction][['responsea', 'responseb']].values
|
@@ -115,13 +115,13 @@ demo = gr.ChatInterface(
|
|
115 |
Parquet νμΌμ μλ λ΄μ©μ λν΄μλ μ μ ν λλ΅μ μμ±ν΄ μ£ΌμΈμ.
|
116 |
""", label="μμ€ν
ν둬ννΈ"),
|
117 |
gr.Slider(minimum=1, maximum=4000, value=1000, step=1, label="Max new tokens"),
|
118 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="
|
119 |
gr.Slider(
|
120 |
minimum=0.1,
|
121 |
maximum=1.0,
|
122 |
value=0.95,
|
123 |
step=0.05,
|
124 |
-
label="
|
125 |
),
|
126 |
],
|
127 |
examples=[
|
|
|
35 |
print(f"컬λΌ: {df.columns}")
|
36 |
except Exception as e:
|
37 |
print(f"Parquet νμΌ λ‘λ μ€ μ€λ₯ λ°μ: {e}")
|
38 |
+
df = pd.atarame(columns=['instruction', 'responsea', 'responseb']) # λΉ atarame μμ±
|
39 |
|
40 |
def getanswer(instruction):
|
41 |
matchingresponse = df[df['instruction'] == instruction][['responsea', 'responseb']].values
|
|
|
115 |
Parquet νμΌμ μλ λ΄μ©μ λν΄μλ μ μ ν λλ΅μ μμ±ν΄ μ£ΌμΈμ.
|
116 |
""", label="μμ€ν
ν둬ννΈ"),
|
117 |
gr.Slider(minimum=1, maximum=4000, value=1000, step=1, label="Max new tokens"),
|
118 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="temperature"),
|
119 |
gr.Slider(
|
120 |
minimum=0.1,
|
121 |
maximum=1.0,
|
122 |
value=0.95,
|
123 |
step=0.05,
|
124 |
+
label="top-p (nucleus sampling)",
|
125 |
),
|
126 |
],
|
127 |
examples=[
|