Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -207,7 +207,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
| 207 |
|
| 208 |
def create_ui():
|
| 209 |
"""Gradio UI ์์ฑ"""
|
| 210 |
-
with gr.Blocks(title="LoRA Merger"
|
| 211 |
gr.Markdown("""
|
| 212 |
# ๐ง IB-Math-Ontology LoRA Merger
|
| 213 |
|
|
@@ -231,15 +231,14 @@ def create_ui():
|
|
| 231 |
output = gr.Textbox(
|
| 232 |
label="Logs",
|
| 233 |
lines=30,
|
| 234 |
-
max_lines=50
|
| 235 |
-
show_copy_button=True
|
| 236 |
)
|
| 237 |
|
| 238 |
merge_btn.click(fn=merge_model, outputs=output)
|
| 239 |
|
| 240 |
gr.Markdown("""
|
| 241 |
---
|
| 242 |
-
**Note**:
|
| 243 |
""")
|
| 244 |
|
| 245 |
return app
|
|
|
|
| 207 |
|
| 208 |
def create_ui():
|
| 209 |
"""Gradio UI ์์ฑ"""
|
| 210 |
+
with gr.Blocks(title="LoRA Merger") as app:
|
| 211 |
gr.Markdown("""
|
| 212 |
# ๐ง IB-Math-Ontology LoRA Merger
|
| 213 |
|
|
|
|
| 231 |
output = gr.Textbox(
|
| 232 |
label="Logs",
|
| 233 |
lines=30,
|
| 234 |
+
max_lines=50
|
|
|
|
| 235 |
)
|
| 236 |
|
| 237 |
merge_btn.click(fn=merge_model, outputs=output)
|
| 238 |
|
| 239 |
gr.Markdown("""
|
| 240 |
---
|
| 241 |
+
**Note**: This process takes about 10-15 minutes. Make sure you have enough GPU memory.
|
| 242 |
""")
|
| 243 |
|
| 244 |
return app
|