neverix commited on
Commit
d3e7130
1 Parent(s): 5f91364

Maybe update again?

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def generate(*args):
24
 
25
 
26
  def main():
27
- gr.Interface(inputs=[
28
  (gr.inputs.Number(label=k, default=v0) if t in (float, int) else
29
  gr.inputs.Checkbox(label=k, default=v0) if t == bool else gr.inputs.Textbox(label=k, default=v0) if t == str
30
  else gr.inputs.Dropdown(label=k, default=v0, choices=t) if isinstance(t, (tuple, list)) else 1/0)
 
24
 
25
 
26
  def main():
27
+ gr.TabbedInterface(inputs=[
28
  (gr.inputs.Number(label=k, default=v0) if t in (float, int) else
29
  gr.inputs.Checkbox(label=k, default=v0) if t == bool else gr.inputs.Textbox(label=k, default=v0) if t == str
30
  else gr.inputs.Dropdown(label=k, default=v0, choices=t) if isinstance(t, (tuple, list)) else 1/0)
requirements.txt CHANGED
@@ -4,7 +4,7 @@ iopath
4
  pytorch3d==0.6.2
5
  transformers==4.10.3
6
  -f https://download.pytorch.org/whl/cu113
7
- torch==1.11.0
8
  torchvision==0.12.0
9
  clip
10
- gradio
 
4
  pytorch3d==0.6.2
5
  transformers==4.10.3
6
  -f https://download.pytorch.org/whl/cu113
7
+ https://download.pytorch.org/whl/cu113/torch-1.12.0%2Bcu113-cp38-cp38-linux_x86_64.whl
8
  torchvision==0.12.0
9
  clip
10
+ gradio