waleko commited on
Commit
b54f700
1 Parent(s): 24dcd1f
Files changed (3) hide show
  1. infer.py +1 -1
  2. requirements.txt +1 -1
  3. webui.py +2 -1
infer.py CHANGED
@@ -196,7 +196,7 @@ class TikzGenerator:
196
  self.expand_to_square = expand_to_square
197
  self.clean_up_output = clean_up_output
198
  self.pipeline = pipe
199
- self.pipeline.model = torch.compile(model) # type: ignore
200
 
201
  self.default_kwargs = dict(
202
  temperature=temperature,
 
196
  self.expand_to_square = expand_to_square
197
  self.clean_up_output = clean_up_output
198
  self.pipeline = pipe
199
+ # self.pipeline.model = torch.compile(self.pipeline.model)
200
 
201
  self.default_kwargs = dict(
202
  temperature=temperature,
requirements.txt CHANGED
@@ -4,4 +4,4 @@ pdf2image~=1.16
4
  PyMuPDF~=1.22
5
  peft>=0.2.0
6
  transformers
7
- gradio~=3.46
 
4
  PyMuPDF~=1.22
5
  peft>=0.2.0
6
  transformers
7
+ gradio
webui.py CHANGED
@@ -139,7 +139,8 @@ def build_ui(model=list(models)[0], lock=False, rasterize=False, force_light=Fal
139
  "while simple objects work best with shorter, 2-3 word captions."
140
  )
141
  # caption = gr.Textbox(label="Caption", info=info, placeholder="Type a caption...")
142
- image = gr.Image(label="Image Input", type="pil")
 
143
  label = "Model" + (f" ({lock_reason})" if lock else "")
144
  model = gr.Dropdown(label=label, choices=list(models.items()), value=models[model], interactive=not lock) # type: ignore
145
  with gr.Accordion(label="Advanced Options", open=False):
 
139
  "while simple objects work best with shorter, 2-3 word captions."
140
  )
141
  # caption = gr.Textbox(label="Caption", info=info, placeholder="Type a caption...")
142
+ # image = gr.Image(label="Image Input", type="pil")
143
+ image = gr.ImageEditor(label="Image Input", type="pil")
144
  label = "Model" + (f" ({lock_reason})" if lock else "")
145
  model = gr.Dropdown(label=label, choices=list(models.items()), value=models[model], interactive=not lock) # type: ignore
146
  with gr.Accordion(label="Advanced Options", open=False):