File size: 1,191 Bytes
be0e66f
 
b2848c4
be0e66f
 
44639bf
be0e66f
 
 
 
 
 
 
 
b2848c4
 
 
 
 
 
 
 
be0e66f
b2848c4
 
 
be0e66f
 
 
 
b2848c4
 
 
 
be0e66f
b2848c4
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
lite_metadata:
  gradio_version: 3.32.0
  liteobj_version: 0.0.7
class_string: gradio.interface.Interface
kwargs:
  title: Gradio Webapp
  description: Given two sorted arrays nums1 and nums2 of size m and n respectively,
    return the median of the two sorted arrays
  article: null
  thumbnail: null
  theme: gradio/seafoam
  css: null
  allow_flagging: never
  inputs:
  - class_string: gradio.components.Dataframe
    kwargs:
      label: nums1
      type: array
  - class_string: gradio.components.Dataframe
    kwargs:
      label: nums2
      type: array
  outputs:
  - class_string: gradio.components.Number
    kwargs:
      label: output
  fn:
    class_string: gradify.gradify_closure
    kwargs:
      argmaps:
      - label: nums1
        postprocessing: 'lambda array: list(map(int, array[0]))'
      - label: nums2
        postprocessing: 'lambda array: list(map(int, array[0]))'
      func_kwargs: {}
      source: "def findMedianSortedArrays(nums1, nums2):\n    nums1.extend(nums2)\n\
        \    nums1.sort()\n    n = len(nums1)\n    if n % 2 == 0:\n        return\
        \ (nums1[n // 2] + nums1[n // 2 - 1]) / 2\n    else:\n        return nums1[n\
        \ // 2]\n"