Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ def summarize_space(space: Dict) -> str:
|
|
| 66 |
]
|
| 67 |
|
| 68 |
try:
|
| 69 |
-
response = hf_client.chat_completion(messages, max_tokens=
|
| 70 |
return response.choices[0].message.content
|
| 71 |
except Exception as e:
|
| 72 |
return f"μμ½ μμ± μ€ μ€λ₯ λ°μ: {str(e)}"
|
|
@@ -123,7 +123,7 @@ def create_ui():
|
|
| 123 |
space_rows.append((space_row, button, space))
|
| 124 |
|
| 125 |
with gr.Column(scale=1):
|
| 126 |
-
info_output = gr.Textbox(label="Space μ 보 λ° μμ½", lines=
|
| 127 |
app_py_content = gr.Code(language="python", label="app.py λ΄μ©")
|
| 128 |
|
| 129 |
for _, button, space in space_rows:
|
|
|
|
| 66 |
]
|
| 67 |
|
| 68 |
try:
|
| 69 |
+
response = hf_client.chat_completion(messages, max_tokens=400, temperature=0.7)
|
| 70 |
return response.choices[0].message.content
|
| 71 |
except Exception as e:
|
| 72 |
return f"μμ½ μμ± μ€ μ€λ₯ λ°μ: {str(e)}"
|
|
|
|
| 123 |
space_rows.append((space_row, button, space))
|
| 124 |
|
| 125 |
with gr.Column(scale=1):
|
| 126 |
+
info_output = gr.Textbox(label="Space μ 보 λ° μμ½", lines=16)
|
| 127 |
app_py_content = gr.Code(language="python", label="app.py λ΄μ©")
|
| 128 |
|
| 129 |
for _, button, space in space_rows:
|