Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,10 @@ import torch
|
|
3 |
import gradio as gr
|
4 |
import random
|
5 |
from textwrap import wrap
|
6 |
-
import
|
7 |
-
|
|
|
|
|
8 |
# Functions to Wrap the Prompt Correctly
|
9 |
|
10 |
def wrap_text(text, width=90):
|
|
|
3 |
import gradio as gr
|
4 |
import random
|
5 |
from textwrap import wrap
|
6 |
+
from transformers import AutoConfig, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, MistralForCausalLM
|
7 |
+
from peft import PeftModel, PeftConfig
|
8 |
+
import torch
|
9 |
+
import gradio as gr
|
10 |
# Functions to Wrap the Prompt Correctly
|
11 |
|
12 |
def wrap_text(text, width=90):
|