xerox-elf commited on
Commit
6c80d8c
1 Parent(s): a166692

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
  import torch
 
 
 
 
3
  from transformers import AutoModel, AutoTokenizer
4
 
5
  # Example of loading a custom LoRA model
@@ -35,12 +39,6 @@ interface = gr.Interface(fn=process_image,
35
  # Launch the interface
36
  interface.launch()
37
 
38
- import os
39
- import random
40
- import sys
41
- from typing import Sequence, Mapping, Any, Union
42
- import torch
43
-
44
 
45
  def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
46
  """Returns the value at the given index of a sequence or mapping.
 
1
  import gradio as gr
2
  import torch
3
+ import os
4
+ import random
5
+ import sys
6
+ from typing import Sequence, Mapping, Any, Union
7
  from transformers import AutoModel, AutoTokenizer
8
 
9
  # Example of loading a custom LoRA model
 
39
  # Launch the interface
40
  interface.launch()
41
 
 
 
 
 
 
 
42
 
43
  def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
44
  """Returns the value at the given index of a sequence or mapping.