mehdiabruee commited on
Commit
23770b2
·
1 Parent(s): 24b1850

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -8,9 +8,8 @@ Original file is located at
8
  """
9
  #import os
10
  #os.system("pip install fastai")
11
- !pip install huggingface_hub["fastai"]
12
- from fastai.vision.all import *
13
- from fastai.basics import *
14
 
15
  """cyclegan_inference.ipynb
16
 
@@ -25,9 +24,9 @@ import torchvision
25
  from torch import nn
26
  from typing import List
27
 
28
- def ifnone(a, b): # a fastai-specific (fastcore) function used below, redefined so it's independent
29
- "`b` if `a` is None else `a`"
30
- return b if a is None else a
31
 
32
  class ConvBlock(torch.nn.Module):
33
  def __init__(self,input_size,output_size,kernel_size=4,stride=2,padding=1,activation='relu',batch_norm=True):
 
8
  """
9
  #import os
10
  #os.system("pip install fastai")
11
+ #from fastai.vision.all import *
12
+ #from fastai.basics import *
 
13
 
14
  """cyclegan_inference.ipynb
15
 
 
24
  from torch import nn
25
  from typing import List
26
 
27
+ #def ifnone(a, b): # a fastai-specific (fastcore) function used below, redefined so it's independent
28
+ # "`b` if `a` is None else `a`"
29
+ # return b if a is None else a
30
 
31
  class ConvBlock(torch.nn.Module):
32
  def __init__(self,input_size,output_size,kernel_size=4,stride=2,padding=1,activation='relu',batch_norm=True):